ntoskrnl: Have MmIsAddressValid use IsBadReadPtr.
Signed-off-by: Derek Lesho <dereklesho52@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9d55086f82
commit
bccadc0d28
|
@ -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);
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
Loading…
Reference in New Issue