dougs fix for build

This commit is contained in:
Timo Kreuzer 2023-10-14 18:55:49 +03:00
parent 1c4bf2d702
commit 3998b1dfbf

View file

@ -239,7 +239,9 @@ MmAccessFault(IN ULONG FaultCode,
if (MmGetKernelAddressSpace()) if (MmGetKernelAddressSpace())
{ {
/* Check if this is an ARM3 memory area */ /* Check if this is an ARM3 memory area */
MmLockAddressSpace(MmGetKernelAddressSpace());
MemoryArea = MmLocateMemoryAreaByAddress(MmGetKernelAddressSpace(), Address); MemoryArea = MmLocateMemoryAreaByAddress(MmGetKernelAddressSpace(), Address);
MmUnlockAddressSpace(MmGetKernelAddressSpace());
if (!(MemoryArea) && (Address <= MM_HIGHEST_USER_ADDRESS)) if (!(MemoryArea) && (Address <= MM_HIGHEST_USER_ADDRESS))
{ {
/* Could this be a VAD fault from user-mode? */ /* Could this be a VAD fault from user-mode? */