Fix Magnus change. Part II.

svn path=/trunk/; revision=32578
This commit is contained in:
James Tabor
2008-03-06 02:58:07 +00:00
parent 1cd7acbb2e
commit d07ce86ee0
-3
View File
@@ -962,9 +962,6 @@ MmSecureVirtualMemory(PVOID Address,
SIZE_T Length,
ULONG Mode)
{
if ( ( (DWORD)Address + Length > (DWORD)MmHighestUserAddress) ||
( (DWORD)Address + Length <= (DWORD)Address ) )
/* Only works for user space */
if (((ULONG_PTR)Address > (ULONG_PTR)Address + Length) ||
((ULONG_PTR)MmHighestUserAddress < (ULONG_PTR)Address + Length))