From 88a70251309902e450052de212343e9d1835d834 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Fri, 15 May 2015 20:10:22 -0500 Subject: [PATCH] ems test wwww modified: src/lib/exmm/EMM.EXE modified: src/lib/exmm/memory.c --- src/lib/exmm/EMM.EXE | Bin 19160 -> 19128 bytes src/lib/exmm/memory.c | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/exmm/EMM.EXE b/src/lib/exmm/EMM.EXE index 0dbd5fe1a3b2b59ee9e45628ddb9df3325e8ea41..dade277b70493c065875c9f90384df17ea0455af 100644 GIT binary patch delta 2836 zcmZ9O3sh9c8OLYtoqezi3qDw$^6&xj5>^pJWJQqmQAIA+2Z&-dY0PQTq;-+Til_wb zb#Yz2u{Djy>e1w+HO4BYUQr_jD~T)7YO1KMiCWIN8%RPzf`D|l|GOk7Iqo^XZ)U#v z=9_Qko1Hry`>4E+)-EiUNdnnI#*%2g&-W%nl~foAi6g_mHN3#?>j@bfKu9ro7Q6zs zfqmd0*iHqu6P!c+GvLAaY9nj|2{{8Ef_3n-1^g0h2VVsdvMHFc{{lY^ zA!Pa}LRN!4;25|9CX6N|AAAfRfd7GjP(pqWA|eSXpGZg-n3P0FXDT7tX&4VqfeRpa z5+MSp1-&35oe(=;E3luTasa#y?t^d(AuoVCAb&C;FM>Vb(^HDvuDW6$Ud2nG4o{ zjbI1Z4;n!`=mcK^V?H5E!Ah_ToCdmCa1IWFQ@{gk2y|KjATY6XBB_>m1 zvMPi6u0)e^jJit9awaK(M%LF|(xP0%l|pCp>yARFcdqj8WEua3axIjKOS;IVggt{E zCUfw;Q}5~uGRp_lzG8{;qn@9x&Z9TW$NfH1Rm*dXSZ+9ML-3!*#D4LLs`wDC$2zgq zdDo$HEaTAHs6WdQu~qDGEcKccU4ZL{x!+g)f2xCLty#Y6_k2UD;bSdr`lqc9`K?S! zHg$=u!_z8R%w?AEt3I|#?RhEkG6W904RTii^y`@>~URk-S+%1P-b^npV*aUh; z%43O1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z;VDHg=p2$)&eFhSb5R;ppA=1l{8v#0WMc7r$o0hwBGq793-B+4KcmV(X%=I}jp8iK z8|IWkR?bmx{vYPpZFlhz029`6_?_y|v&{SRD`MYrk(rl^RbCVqPDSmXsYww? zm0E7~Ey73Uj8DQ$cY|#^B{gBk98&XD_w8iuyOeh9dzZS~kG#+oKcO90Hw@PKC2Dnk zQ<6AMUE_w8<<75E3zSn`lhnbw-+D^IHs0#Ho^h5Atfll!C}iAzd|}e(Z{Z7!#?4aK)0b3D J+?SDr{13m;>BRs5 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); -- 2.39.5