Skip to content

Commit efefc97

Browse files
author
Sir Richard
committed
[NTOS]: This is why you shouldn't let Antoine Dodson commit code.
svn path=/trunk/; revision=48941
1 parent febd117 commit efefc97

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

reactos/ntoskrnl/mm/ARM3/pagfault.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ MiCheckPdeForPagedPool(IN PVOID Address)
111111
// Copy it from our double-mapped system page directory
112112
//
113113
InterlockedExchangePte(PointerPde,
114-
MmSystemPagePtes[(ULONG_PTR)PointerPde & (SYSTEM_PD_SIZE - 1)].u.Long);
114+
MmSystemPagePtes[((ULONG_PTR)PointerPde & (SYSTEM_PD_SIZE - 1)) / sizeof(MMPTE)].u.Long);
115115
#endif
116116
}
117117

reactos/ntoskrnl/mm/ARM3/pool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ MiAllocatePoolPages(IN POOL_TYPE PoolType,
488488
//
489489
// Save it into our double-buffered system page directory
490490
//
491-
MmSystemPagePtes[(ULONG_PTR)PointerPde & (SYSTEM_PD_SIZE - 1)] = TempPde;
491+
MmSystemPagePtes[((ULONG_PTR)PointerPde & (SYSTEM_PD_SIZE - 1)) / sizeof(MMPTE)] = TempPde;
492492

493493
/* Initialize the PFN */
494494
MiInitializePfnForOtherProcess(PageFrameNumber,

0 commit comments

Comments
 (0)