mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:46:17 +00:00
Better check for MmSecureVirtualMemory
svn path=/trunk/; revision=32574
This commit is contained in:
parent
5d2e49696e
commit
6802a70b13
1 changed files with 4 additions and 4 deletions
|
@ -962,11 +962,11 @@ MmSecureVirtualMemory(PVOID Address,
|
|||
SIZE_T Length,
|
||||
ULONG Mode)
|
||||
{
|
||||
/* Only works for user space */
|
||||
if (MmHighestUserAddress < Address)
|
||||
{
|
||||
if ( ( Address + Length) > MmHighestUserAddress) ||
|
||||
(Address + Length <= Address ) )
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
UNIMPLEMENTED;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue