[FREELDR] Properly check for end-of-memory-map entries when skipping ranges smaller than page size.

CORE-12881

Signed-off-by: Timo Kreuzer <timo.kreuzer@reactos.org>
This commit is contained in:
Serge Gautherie 2017-10-04 18:04:35 +02:00 committed by Timo Kreuzer
parent 274ace05b2
commit 55ae20931f

View file

@ -318,7 +318,7 @@ PcMemGetBiosMemoryMap(PFREELDR_MEMORY_DESCRIPTOR MemoryMap, ULONG MaxMemoryMapSi
PcBiosMapCount,
PcBiosMemoryMap[PcBiosMapCount].BaseAddress,
PcBiosMemoryMap[PcBiosMapCount].Length);
continue;
goto nextRange;
}
/* Calculate the length of the aligned range */