]> 4ch.mooo.com Git - 16.git/commitdiff
still testing....
authorsparky4 <sparky4@cock.li>
Sat, 16 May 2015 01:20:57 +0000 (20:20 -0500)
committersparky4 <sparky4@cock.li>
Sat, 16 May 2015 01:20:57 +0000 (20:20 -0500)
modified:   src/lib/exmm/EMM.EXE
modified:   src/lib/exmm/emm.c

src/lib/exmm/EMM.EXE
src/lib/exmm/emm.c

index 729ba5aeddd2517c8a4554b6d36c315a3a7a60b2..1c10737f95710602368d01c7ba52b2bc005e7223 100644 (file)
Binary files a/src/lib/exmm/EMM.EXE and b/src/lib/exmm/EMM.EXE differ
index af7d8d84a49505d7bcc89c1336675a52bab97250..05e68bf6f600453dab96b030f94179cef228e5a3 100644 (file)
@@ -52,7 +52,7 @@ int main(int argc, char *argv[])
        printf("b4 EMS          *pEmmData=%x\n", *pEmmData);
        //printf("b4 EMS        *pEmmData=%s\n", *pEmmData);
 
-       pEmmData = (byte *)EMMalloc(&hEData, 104);  // get 6 * 16K bytes - 96K
+       pEmmData = (byte *)EMMalloc(&hEData, EMMCoreLeft()-1);  // get 6 * 16K bytes - 96K
        if(pEmmData == NULL/* ||  pEmmData0 == NULL*/)\r
        {\r
                printf("Not enough EMM or out of handles.\n");\r