[NTOS]: This is why you shouldn't let Antoine Dodson commit code.

svn path=/trunk/; revision=48941
This commit is contained in:
Sir Richard 2010-09-30 14:48:03 +00:00
parent febd117a3b
commit efefc97901
2 changed files with 2 additions and 2 deletions

View file

@ -111,7 +111,7 @@ MiCheckPdeForPagedPool(IN PVOID Address)
// Copy it from our double-mapped system page directory // Copy it from our double-mapped system page directory
// //
InterlockedExchangePte(PointerPde, 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 #endif
} }

View file

@ -488,7 +488,7 @@ MiAllocatePoolPages(IN POOL_TYPE PoolType,
// //
// Save it into our double-buffered system page directory // 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 */ /* Initialize the PFN */
MiInitializePfnForOtherProcess(PageFrameNumber, MiInitializePfnForOtherProcess(PageFrameNumber,