Author: jimtabor
Date: Thu Mar 6 03:55:31 2008
New Revision: 32577
URL:
http://svn.reactos.org/svn/reactos?rev=3D32577&view=3Drev
Log:
Fix Magnus change.
Modified:
trunk/reactos/ntoskrnl/mm/virtual.c
Modified: trunk/reactos/ntoskrnl/mm/virtual.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/virtual.c=
?rev=3D32577&r1=3D32576&r2=3D32577&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/reactos/ntoskrnl/mm/virtual.c (original)
+++ trunk/reactos/ntoskrnl/mm/virtual.c Thu Mar 6 03:55:31 2008
@@ -966,7 +966,8 @@
if ( ( (DWORD)Address + Length > (DWORD)MmHighestUserAddress) || =
( (DWORD)Address + Length <=3D (DWORD)Address ) )
/* Only works for user space */
- if (MmHighestUserAddress < Address)
+ if (((ULONG_PTR)Address > (ULONG_PTR)Address + Length) ||
+ ((ULONG_PTR)MmHighestUserAddress < (ULONG_PTR)Address + Length))
{
return NULL;
}