[ros-diffs] [tkreuzer] 44259: ULONG -> ULONG_PTR

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Sat Nov 21 16:56:05 CET 2009


Author: tkreuzer
Date: Sat Nov 21 16:56:05 2009
New Revision: 44259

URL: http://svn.reactos.org/svn/reactos?rev=44259&view=rev
Log:
ULONG -> ULONG_PTR

Modified:
    branches/ros-amd64-bringup/reactos/ntoskrnl/mm/anonmem.c

Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/mm/anonmem.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntoskrnl/mm/anonmem.c?rev=44259&r1=44258&r2=44259&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/mm/anonmem.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/mm/anonmem.c [iso-8859-1] Sat Nov 21 16:56:05 2009
@@ -737,10 +737,10 @@
          MemoryAreaLength = (ULONG_PTR)MemoryArea->EndingAddress -
                             (ULONG_PTR)MemoryArea->StartingAddress;
 
-         if (((ULONG)BaseAddress + RegionSize) > (ULONG)MemoryArea->EndingAddress)
+         if (((ULONG_PTR)BaseAddress + RegionSize) > (ULONG_PTR)MemoryArea->EndingAddress)
          {
             DPRINT("BaseAddress + RegionSize %x is larger than MemoryArea's EndingAddress %x\n",
-                  (ULONG)BaseAddress + RegionSize, MemoryArea->EndingAddress);
+                  (ULONG_PTR)BaseAddress + RegionSize, MemoryArea->EndingAddress);
 
             MmUnlockAddressSpace(AddressSpace);
             ObDereferenceObject(Process);




More information about the Ros-diffs mailing list