ntoskrnl.exe: Implement MmIsAddressValid.
This commit is contained in:
parent
0a16b6b81f
commit
f3380958bd
@ -561,6 +561,25 @@ void WINAPI MmFreeNonCachedMemory( void *addr, SIZE_T size )
|
|||||||
VirtualFree( addr, 0, MEM_RELEASE );
|
VirtualFree( addr, 0, MEM_RELEASE );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* MmIsAddressValid (NTOSKRNL.EXE.@)
|
||||||
|
*
|
||||||
|
* Check if the process can access the virtual address without a pagefault
|
||||||
|
*
|
||||||
|
* PARAMS
|
||||||
|
* VirtualAddress [I] Address to check
|
||||||
|
*
|
||||||
|
* RETURNS
|
||||||
|
* Failure: FALSE
|
||||||
|
* Success: TRUE (Accessing the Address works without a Pagefault)
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
BOOLEAN WINAPI MmIsAddressValid(PVOID VirtualAddress)
|
||||||
|
{
|
||||||
|
TRACE("(%p)\n", VirtualAddress);
|
||||||
|
return !IsBadWritePtr(VirtualAddress, 1);
|
||||||
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* MmPageEntireDriver (NTOSKRNL.EXE.@)
|
* MmPageEntireDriver (NTOSKRNL.EXE.@)
|
||||||
*/
|
*/
|
||||||
|
@ -679,7 +679,7 @@
|
|||||||
@ stub MmGetVirtualForPhysical
|
@ stub MmGetVirtualForPhysical
|
||||||
@ stub MmGrowKernelStack
|
@ stub MmGrowKernelStack
|
||||||
@ stub MmHighestUserAddress
|
@ stub MmHighestUserAddress
|
||||||
@ stub MmIsAddressValid
|
@ stdcall MmIsAddressValid(ptr)
|
||||||
@ stub MmIsDriverVerifying
|
@ stub MmIsDriverVerifying
|
||||||
@ stub MmIsNonPagedSystemAddressValid
|
@ stub MmIsNonPagedSystemAddressValid
|
||||||
@ stub MmIsRecursiveIoFault
|
@ stub MmIsRecursiveIoFault
|
||||||
|
Loading…
x
Reference in New Issue
Block a user