Merge trunk head (r43756)
[reactos.git] / reactos / ntoskrnl / config / cmsysini.c
index d134313..ab3b1d4 100644 (file)
@@ -1079,7 +1079,7 @@ CmpLoadHiveThread(IN PVOID StartContext)
     PAGED_CODE();
 
     /* Get the hive index, make sure it makes sense */
-    i = (ULONG)StartContext;
+    i = PtrToUlong(StartContext);
     ASSERT(CmpMachineHiveList[i].Name != NULL);
 
     /* We were started */
@@ -1274,7 +1274,7 @@ CmpInitializeHiveList(IN USHORT Flag)
                                       0,
                                       NULL,
                                       CmpLoadHiveThread,
-                                      (PVOID)i);
+                                      UlongToPtr(i));
         if (NT_SUCCESS(Status))
         {
             /* We don't care about the handle -- the thread self-terminates */