Author: tfaber
Date: Sat Jan 7 17:05:41 2012
New Revision: 54865
URL:
http://svn.reactos.org/svn/reactos?rev=54865&view=rev
Log:
[NTOSKRNL/MM]
- Fix memory type comparison in MiScanMemoryDescriptors. Spotted by Samuel Serapion
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/mminit.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/mminit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/mminit.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/mminit.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/mminit.c [iso-8859-1] Sat Jan 7 17:05:41 2012
@@ -397,9 +397,9 @@
MiNumberDescriptors++;
/* Check if this is invisible memory */
- if ((Descriptor->MemoryType == LoaderFirmwarePermanent) &&
- (Descriptor->MemoryType == LoaderSpecialMemory) &&
- (Descriptor->MemoryType == LoaderHALCachedMemory) &&
+ if ((Descriptor->MemoryType == LoaderFirmwarePermanent) ||
+ (Descriptor->MemoryType == LoaderSpecialMemory) ||
+ (Descriptor->MemoryType == LoaderHALCachedMemory) ||
(Descriptor->MemoryType == LoaderBBTMemory))
{
/* Skip this descriptor */