mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[NTVDM]
Don't crash when DosFreeMemory is called with BlockData == 0. svn path=/trunk/; revision=67475
This commit is contained in:
@@ -319,6 +319,7 @@ BOOLEAN DosFreeMemory(WORD BlockData)
|
||||
PDOS_MCB Mcb = SEGMENT_TO_MCB(BlockData - 1);
|
||||
|
||||
DPRINT("DosFreeMemory: BlockData 0x%04X\n", BlockData);
|
||||
if (BlockData == 0) return FALSE;
|
||||
|
||||
/* Make sure the MCB is valid */
|
||||
if (Mcb->BlockType != 'M' && Mcb->BlockType != 'Z')
|
||||
|
||||
Reference in New Issue
Block a user