[FREELDR] Properly check for end-of-memory-map entries when skipping ranges smaller...
authorSerge Gautherie <reactos-git_serge_171003@gautherie.fr>
Wed, 4 Oct 2017 16:04:35 +0000 (18:04 +0200)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Thu, 5 Oct 2017 17:19:42 +0000 (19:19 +0200)
CORE-12881

Signed-off-by: Timo Kreuzer <timo.kreuzer@reactos.org>
boot/freeldr/freeldr/arch/i386/pcmem.c

index 169070e..61cd694 100644 (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 */