From: sparky4 Date: Thu, 2 Jul 2015 21:16:55 +0000 (-0500) Subject: modified: exmmtest.exe X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=805fdac96cc084ef7c125a6dca0ca07c24bec520;p=16.git modified: exmmtest.exe modified: src/lib/16_mm.c --- diff --git a/exmmtest.exe b/exmmtest.exe index df027297..c3e45c28 100644 Binary files a/exmmtest.exe and b/exmmtest.exe differ diff --git a/src/lib/16_mm.c b/src/lib/16_mm.c index 3f0e7e57..8df8cb4d 100644 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -435,7 +435,7 @@ void MML_UseSpace(unsigned segstart, dword seglength, mminfo_t *mm) oldend = scan->start + scan->length; extra = oldend - (segstart+seglength); //++++emsver stuff! - if(extra > 0xffffl) + if(extra > 0xfffflu) { printf("MML_UseSpace: Segment spans two blocks!\n"); //return; @@ -451,7 +451,7 @@ void MML_UseSpace(unsigned segstart, dword seglength, mminfo_t *mm) else scan->length = segstart-scan->start; // shorten block - if(extra > 0) + if(0xfffflu > extra > 0) { MM_GetNewBlock(mm); mm->mmnew->next = scan->next;