Accidentally undid 64 bit fixes, revert
authorSamuel Serapion <samuel.serapion@gmail.com>
Mon, 15 Dec 2008 04:28:45 +0000 (04:28 +0000)
committerSamuel Serapion <samuel.serapion@gmail.com>
Mon, 15 Dec 2008 04:28:45 +0000 (04:28 +0000)
svn path=/branches/ros-amd64-bringup/; revision=38100

reactos/dll/win32/advapi32/reg/reg.c

index 5115f72..c83e8ac 100644 (file)
@@ -41,9 +41,9 @@ static VOID CloseDefaultKeys(VOID);
         NtClose(Handle);                                                       \
     }
 #define IsPredefKey(HKey)                                                      \
-    (((ULONG)(HKey) & 0xF0000000) == 0x80000000)
+    (((ULONG_PTR)(HKey) & 0xF0000000) == 0x80000000)
 #define GetPredefKeyIndex(HKey)                                                \
-    ((ULONG)(HKey) & 0x0FFFFFFF)
+    ((ULONG_PTR)(HKey) & 0x0FFFFFFF)
 
 static NTSTATUS OpenClassesRootKey(PHANDLE KeyHandle);
 static NTSTATUS OpenLocalMachineKey (PHANDLE KeyHandle);