From: sparky4 Date: Sat, 16 May 2015 01:10:22 +0000 (-0500) Subject: ems test wwww X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=88a70251309902e450052de212343e9d1835d834;p=16.git ems test wwww modified: src/lib/exmm/EMM.EXE modified: src/lib/exmm/memory.c --- diff --git a/src/lib/exmm/EMM.EXE b/src/lib/exmm/EMM.EXE index 0dbd5fe1..dade277b 100644 Binary files a/src/lib/exmm/EMM.EXE and b/src/lib/exmm/EMM.EXE differ diff --git a/src/lib/exmm/memory.c b/src/lib/exmm/memory.c index 3a81a0c5..38b12255 100644 --- a/src/lib/exmm/memory.c +++ b/src/lib/exmm/memory.c @@ -213,7 +213,7 @@ MapEMM(int Handle, int Start, int Pages) if (!EMMSeg) return(NOTREADY); for (i = 0; (i < MAXEMHANDLES) && (ActiveEMList[i] != Handle); i++) ; if (i == MAXEMHANDLES) return (NO_DATA); - if ((GetNumPages(Handle) < Pages) || (Pages < 1) || (Pages > EMMCoreLeft(/*4*/))) { + if ((GetNumPages(Handle) < Pages) || (Pages < 1) || (Pages > 4)) { return (VALUE_OUTF_RANGE); } for (i = Start; i < Start + Pages; i++) { @@ -233,7 +233,7 @@ UnmapEMM(int Handle, int Start, int Pages) for (i = 0; (i < MAXEMHANDLES) && (ActiveEMList[i] != Handle); i++) ; if (i == MAXEMHANDLES) return; j = Start + Pages; - if ((Pages < 1) || (j > EMMCoreLeft(/*4*/))) return; + if ((Pages < 1) || (j > 4)) return; for (i = Start; i < j; i++) { EMMap(Handle, NONE, i);