OSDN Git Service

applied fix
authorsparky4 <sparky4@cock.li>
Mon, 13 Jul 2015 00:17:12 +0000 (19:17 -0500)
committersparky4 <sparky4@cock.li>
Mon, 13 Jul 2015 00:17:12 +0000 (19:17 -0500)
modified:   exmmtest.exe
modified:   src/lib/16_mm.c

exmmtest.exe
src/lib/16_mm.c

index 4bd6a74..9e14913 100644 (file)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index ae8205f..cf7e431 100644 (file)
@@ -83,10 +83,11 @@ static      char *ParmStringsexmm[] = {"noems","noxms",""};
 boolean MML_CheckForEMS(void)
 {
        boolean emmcfems;
-       char    emmname[] = "EMMXXXX0";
+       static char     emmname[] = "EMMXXXX0"; //fix by andrius4669
 //             mov     dx,OFFSET emmname
        __asm {
-               LEA     DX, emmname     //fix by andrius4669
+               //LEA   DX, emmname     //fix by andrius4669
+               mov     dx,OFFSET emmname       //fix by andrius4669
                mov     ax,0x3d00
                int     0x21            // try to open EMMXXXX0 device
                jc      error