mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 00:43:21 +00:00
[NTOS]: This is why you shouldn't let Antoine Dodson commit code.
svn path=/trunk/; revision=48941
This commit is contained in:
parent
febd117a3b
commit
efefc97901
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue