Fix 64 bit portability issues.
authorEric Kohl <eric.kohl@reactos.org>
Sat, 6 Sep 2008 10:44:08 +0000 (10:44 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sat, 6 Sep 2008 10:44:08 +0000 (10:44 +0000)
svn path=/trunk/; revision=35977

reactos/base/system/services/rpcserver.c

index 5e11db3..997ac86 100644 (file)
@@ -1963,7 +1963,7 @@ done:;
     if (dwError == ERROR_SUCCESS)
     {
         DPRINT("hService %p\n", hServiceHandle);
-        *lpServiceHandle = (unsigned long)hServiceHandle; /* FIXME: 64 bit portability */
+        *lpServiceHandle = (SC_RPC_HANDLE)hServiceHandle;
 
         if (lpdwTagId != NULL)
             *lpdwTagId = lpService->dwTag;
@@ -2356,7 +2356,7 @@ DWORD ROpenSCManagerW(
         return dwError;
     }
 
-    *lpScHandle = (unsigned long)hHandle; /* FIXME: 64 bit portability */
+    *lpScHandle = (SC_RPC_HANDLE)hHandle;
     DPRINT("*hScm = %p\n", *lpScHandle);
 
     DPRINT("ROpenSCManagerW() done\n");
@@ -2432,7 +2432,7 @@ DWORD ROpenServiceW(
     lpService->dwRefCount++;
     DPRINT1("OpenService - lpService->dwRefCount %u\n",lpService->dwRefCount);
 
-    *lpServiceHandle = (unsigned long)hHandle; /* FIXME: 64 bit portability */
+    *lpServiceHandle = (SC_RPC_HANDLE)hHandle;
     DPRINT("*hService = %p\n", *lpServiceHandle);
 
     DPRINT("ROpenServiceW() done\n");