[NTOS]: This is why you shouldn't let Antoine Dodson commit code.
authorSir Richard <sir_richard@svn.reactos.org>
Thu, 30 Sep 2010 14:48:03 +0000 (14:48 +0000)
committerSir Richard <sir_richard@svn.reactos.org>
Thu, 30 Sep 2010 14:48:03 +0000 (14:48 +0000)
svn path=/trunk/; revision=48941

reactos/ntoskrnl/mm/ARM3/pagfault.c
reactos/ntoskrnl/mm/ARM3/pool.c

index 1ac2ca2..635458e 100644 (file)
@@ -111,7 +111,7 @@ MiCheckPdeForPagedPool(IN PVOID Address)
         // Copy it from our double-mapped system page directory
         //
         InterlockedExchangePte(PointerPde,
-                               MmSystemPagePtes[(ULONG_PTR)PointerPde & (SYSTEM_PD_SIZE - 1)].u.Long);
+                               MmSystemPagePtes[((ULONG_PTR)PointerPde & (SYSTEM_PD_SIZE - 1)) / sizeof(MMPTE)].u.Long);
 #endif
     }
     
index bf04db7..8156f67 100644 (file)
@@ -488,7 +488,7 @@ MiAllocatePoolPages(IN POOL_TYPE PoolType,
                 //
                 // Save it into our double-buffered system page directory
                 //
-                MmSystemPagePtes[(ULONG_PTR)PointerPde & (SYSTEM_PD_SIZE - 1)] = TempPde;
+                MmSystemPagePtes[((ULONG_PTR)PointerPde & (SYSTEM_PD_SIZE - 1)) / sizeof(MMPTE)] = TempPde;
                                             
                 /* Initialize the PFN */
                 MiInitializePfnForOtherProcess(PageFrameNumber,