Commit bccadc0d authored by Derek Lesho's avatar Derek Lesho Committed by Alexandre Julliard

ntoskrnl: Have MmIsAddressValid use IsBadReadPtr.

parent 9d55086f
......@@ -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);
}
/***********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment