From Lucho: HMAFree == 0xfff0 - bytesToAllocate is valid and may happen

if the buffers occupy exactly all HMA space up to and including the
last byte at ffff:ffff. Failing caused all buffers to go low ...


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@903 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
Bart Oldeman 2004-04-27 00:40:43 +00:00
parent bb7f10fafc
commit 0afa773303
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ VOID FAR * HMAalloc(COUNT bytesToAllocate)
if (!DosLoadedInHMA)
return NULL;
if (HMAFree >= 0xfff0 - bytesToAllocate)
if (HMAFree > 0xfff0 - bytesToAllocate)
return NULL;
HMAptr = MK_FP(0xffff, HMAFree);