Properly declare handles.

This commit is contained in:
Kevin Koltzau 2005-08-23 09:32:39 +00:00 committed by Alexandre Julliard
parent 575c174d94
commit bfa3077510
2 changed files with 6 additions and 5 deletions

View File

@ -895,7 +895,7 @@ SetServiceStatus( SERVICE_STATUS_HANDLE hService, LPSERVICE_STATUS lpStatus )
service_data *service; service_data *service;
BOOL r = TRUE; BOOL r = TRUE;
TRACE("%lx %lx %lx %lx %lx %lx %lx %lx\n", hService, TRACE("%p %lx %lx %lx %lx %lx %lx %lx\n", hService,
lpStatus->dwServiceType, lpStatus->dwCurrentState, lpStatus->dwServiceType, lpStatus->dwCurrentState,
lpStatus->dwControlsAccepted, lpStatus->dwWin32ExitCode, lpStatus->dwControlsAccepted, lpStatus->dwWin32ExitCode,
lpStatus->dwServiceSpecificExitCode, lpStatus->dwCheckPoint, lpStatus->dwServiceSpecificExitCode, lpStatus->dwCheckPoint,
@ -1511,7 +1511,7 @@ BOOL WINAPI StartServiceW(SC_HANDLE hService, DWORD dwNumServiceArgs,
return r; return r;
} }
hLock = LockServiceDatabase(hsvc->scm); hLock = LockServiceDatabase((SC_HANDLE)hsvc->scm);
if (!hLock) if (!hLock)
return r; return r;
@ -2224,7 +2224,7 @@ BOOL WINAPI SetServiceBits( SERVICE_STATUS_HANDLE hServiceStatus,
BOOL bSetBitsOn, BOOL bSetBitsOn,
BOOL bUpdateImmediately) BOOL bUpdateImmediately)
{ {
FIXME("%08lx %08lx %x %x\n", hServiceStatus, dwServiceBits, FIXME("%p %08lx %x %x\n", hServiceStatus, dwServiceBits,
bSetBitsOn, bUpdateImmediately); bSetBitsOn, bUpdateImmediately);
return TRUE; return TRUE;
} }

View File

@ -114,8 +114,9 @@ extern "C" {
/* Handle types */ /* Handle types */
typedef HANDLE SC_HANDLE, *LPSC_HANDLE; DECLARE_HANDLE(SC_HANDLE);
typedef DWORD SERVICE_STATUS_HANDLE; typedef SC_HANDLE *LPSC_HANDLE;
DECLARE_HANDLE(SERVICE_STATUS_HANDLE);
typedef LPVOID SC_LOCK; typedef LPVOID SC_LOCK;
/* Service status structure */ /* Service status structure */