From bccadc0d28d477851e5ab24b4fbb7b7fd2ca5313 Mon Sep 17 00:00:00 2001 From: Derek Lesho Date: Tue, 5 Jun 2018 11:14:50 -0400 Subject: [PATCH] ntoskrnl: Have MmIsAddressValid use IsBadReadPtr. Signed-off-by: Derek Lesho Signed-off-by: Alexandre Julliard --- 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 55027c50226..e4c1c3530b8 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.11.4.GIT