mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:35:47 +00:00
[FREELDR]
Compare with constants of right type. svn path=/trunk/; revision=53837
This commit is contained in:
parent
8a0fec1a86
commit
62b3a707c7
1 changed files with 3 additions and 2 deletions
|
@ -255,7 +255,8 @@ ULONG MmGetAddressablePageCountIncludingHoles(VOID)
|
|||
//
|
||||
// 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)
|
||||
{
|
||||
// Continue, if memory is not free
|
||||
if (MemoryDescriptor->MemoryType != LoaderFree) continue;
|
||||
if (MemoryDescriptor->MemoryType != MemoryFree) continue;
|
||||
|
||||
// Continue, if the block is not big enough?
|
||||
if (MemoryDescriptor->PageCount < PageLookupTablePages) continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue