Fix 64 bit portability issues.

svn path=/trunk/; revision=35977
This commit is contained in:
Eric Kohl 2008-09-06 10:44:08 +00:00
parent b5c636ee01
commit 9423976cb5

View 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");