Author: ekohl
Date: Sat Sep 6 05:44:08 2008
New Revision: 35977
URL:
http://svn.reactos.org/svn/reactos?rev=35977&view=rev
Log:
Fix 64 bit portability issues.
Modified:
trunk/reactos/base/system/services/rpcserver.c
Modified: trunk/reactos/base/system/services/rpcserver.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/services/rpcse…
==============================================================================
--- trunk/reactos/base/system/services/rpcserver.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/services/rpcserver.c [iso-8859-1] Sat Sep 6 05:44:08 2008
@@ -1963,7 +1963,7 @@
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 @@
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 @@
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");