Author: dgorbachev
Date: Sat Sep 24 13:39:14 2011
New Revision: 53837
URL: http://svn.reactos.org/svn/reactos?rev=53837&view=rev
Log:
[FREELDR]
Compare with constants of right type.
Modified:
trunk/reactos/boot/freeldr/freeldr/mm/meminit.c
Modified: trunk/reactos/boot/freeldr/freeldr/mm/meminit.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/mm/me…
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/mm/meminit.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/mm/meminit.c [iso-8859-1] Sat Sep 24 13:39:14 2011
@@ -255,7 +255,8 @@
//
// 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 @@
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;