[ros-diffs] [greatlrd] 32575: sorry for the break fixed the build

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Sun Mar 9 12:34:09 CET 2008


Author: greatlrd
Date: Thu Mar  6 00:06:12 2008
New Revision: 32575

URL: http://svn.reactos.org/svn/reactos?rev=3D32575&view=3Drev
Log:
sorry for the break fixed the build

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=3D32575&r1=3D32574&r2=3D32575&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 00:06:12 2008
@@ -962,11 +962,14 @@
                       SIZE_T Length,
                       ULONG  Mode)
 {
-     if ( ( Address + Length) > MmHighestUserAddress) || =

-          (Address + Length <=3D Address ) )
-     {
+
+    if ( ( (PBYTE)Address + Length > (PBYTE)MmHighestUserAddress) || =

+          ( (PBYTE)Address + Length <=3D (PBYTE)Address ) )
+    /* Only works for user space */
+    if (MmHighestUserAddress < Address)
+    {
         return NULL;
-     }
+    }
 =

     UNIMPLEMENTED;
 =





More information about the Ros-diffs mailing list