From 6c83ae86cd14e4a6ce8db04cad177169e7cdad3c Mon Sep 17 00:00:00 2001 From: sparky4 Date: Thu, 29 Sep 2016 10:54:10 -0500 Subject: [PATCH] xms still being worked on --- src/lib/16_pm.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/16_pm.c b/src/lib/16_pm.c index ae14303f..bbfec527 100755 --- a/src/lib/16_pm.c +++ b/src/lib/16_pm.c @@ -422,13 +422,14 @@ End1: } __asm { - mov dx,XMSAvail4 + mov dx,[XMSAvail4] //XMS_CALL(XMS_ALLOC); // And do the allocation mov ah,XMS_ALLOC call [DWORD PTR XMSDriver] mov XMSHandle,dx - or ax,ax // AJR: bugfix 10/8/92 - jz error2 + mov err,bl + cmp ax,0 // AJR: bugfix 10/8/92 + je error2 mov e,4 jmp End2 #ifdef __BORLANDC__ -- 2.39.5