Fixes an error inside EasyAntiCheat.sys, which uses MmIsAddressValid on
ntoskrnl.exe, to find its base address. Wine will always return FALSE,
because it checks for write access to ntoskrnl, when all the driver
needs is read access
Tested on Arch Linux
Signed-off-by: Derek Lesho <dereklesho52@Gmail.com>
---
dlls/ntoskrnl.exe/ntoskrnl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index 55027c5..e4c1c35 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -2164,7 +2164,7 @@ void WINAPI MmFreeNonCachedMemory( void *addr, SIZE_T size )
BOOLEAN WINAPI MmIsAddressValid(PVOID VirtualAddress)
{
TRACE("(%p)\n", VirtualAddress);
- return !IsBadWritePtr(VirtualAddress, 1);
+ return !IsBadReadPtr(VirtualAddress, 1);
}
/*********************************************************** ************
--
2.7.4