Fixed the check for the MEM_TOP_DOWN flag in MmMapViewOfSection.
authorHartmut Birr <osexpert@googlemail.com>
Sun, 30 Oct 2005 13:55:28 +0000 (13:55 +0000)
committerHartmut Birr <osexpert@googlemail.com>
Sun, 30 Oct 2005 13:55:28 +0000 (13:55 +0000)
svn path=/trunk/; revision=18882

reactos/ntoskrnl/mm/section.c

index 8653d54..584c9da 100644 (file)
@@ -4520,7 +4520,7 @@ MmMapViewOfSection(IN PVOID SectionObject,
                                   *ViewSize,
                                   Protect,
                                   ViewOffset,
-                                  (AllocationType & MEM_TOP_DOWN));
+                                  (AllocationType & MEM_TOP_DOWN) == MEM_TOP_DOWN);
       MmUnlockSectionSegment(Section->Segment);
       if (!NT_SUCCESS(Status))
       {