mirror of
https://github.com/reactos/reactos.git
synced 2024-07-11 07:05:12 +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
|
// 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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue