[FREELDR]

Compare with constants of right type.

svn path=/trunk/; revision=53837
This commit is contained in:
Dmitry Gorbachev 2011-09-24 13:39:14 +00:00
parent 8a0fec1a86
commit 62b3a707c7

View file

@ -255,7 +255,8 @@ ULONG MmGetAddressablePageCountIncludingHoles(VOID)
// //
// Yes, remember it if this is real memory // Yes, remember it if this is real memory
// //
if (MemoryDescriptor->MemoryType == LoaderFree) MmHighestPhysicalPage = MemoryDescriptor->BasePage + MemoryDescriptor->PageCount; if (MemoryDescriptor->MemoryType == MemoryFree)
MmHighestPhysicalPage = MemoryDescriptor->BasePage + MemoryDescriptor->PageCount;
} }
// //
@ -292,7 +293,7 @@ PVOID MmFindLocationForPageLookupTable(ULONG TotalPageCount)
while ((MemoryDescriptor = ArcGetMemoryDescriptor(MemoryDescriptor)) != NULL) while ((MemoryDescriptor = ArcGetMemoryDescriptor(MemoryDescriptor)) != NULL)
{ {
// Continue, if memory is not free // Continue, if memory is not free
if (MemoryDescriptor->MemoryType != LoaderFree) continue; if (MemoryDescriptor->MemoryType != MemoryFree) continue;
// Continue, if the block is not big enough? // Continue, if the block is not big enough?
if (MemoryDescriptor->PageCount < PageLookupTablePages) continue; if (MemoryDescriptor->PageCount < PageLookupTablePages) continue;