diff --git a/kernel/inithma.c b/kernel/inithma.c index 4c16f27..34b3993 100644 --- a/kernel/inithma.c +++ b/kernel/inithma.c @@ -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);