Commit 97ad5a7e authored by François Gouget's avatar François Gouget Committed by Alexandre Julliard

Fixed some 0 vs. FALSE mismatches.

Fixed a '%x' vs. '%lx' mismatch. Fixed some DWORD vs. SC_HANDLE mismatches.
parent 29625ff5
...@@ -31,7 +31,7 @@ EnumServicesStatusA( SC_HANDLE hSCManager, DWORD dwServiceType, ...@@ -31,7 +31,7 @@ EnumServicesStatusA( SC_HANDLE hSCManager, DWORD dwServiceType,
dwServiceType, dwServiceState, lpServices, cbBufSize, dwServiceType, dwServiceState, lpServices, cbBufSize,
pcbBytesNeeded, lpServicesReturned, lpResumeHandle); pcbBytesNeeded, lpServicesReturned, lpResumeHandle);
SetLastError (ERROR_ACCESS_DENIED); SetLastError (ERROR_ACCESS_DENIED);
return 0; return FALSE;
} }
/****************************************************************************** /******************************************************************************
...@@ -46,7 +46,7 @@ EnumServicesStatusW( SC_HANDLE hSCManager, DWORD dwServiceType, ...@@ -46,7 +46,7 @@ EnumServicesStatusW( SC_HANDLE hSCManager, DWORD dwServiceType,
dwServiceType, dwServiceState, lpServices, cbBufSize, dwServiceType, dwServiceState, lpServices, cbBufSize,
pcbBytesNeeded, lpServicesReturned, lpResumeHandle); pcbBytesNeeded, lpServicesReturned, lpResumeHandle);
SetLastError (ERROR_ACCESS_DENIED); SetLastError (ERROR_ACCESS_DENIED);
return 0; return FALSE;
} }
/****************************************************************************** /******************************************************************************
...@@ -183,7 +183,7 @@ RegisterServiceCtrlHandlerW( LPCWSTR lpServiceName, ...@@ -183,7 +183,7 @@ RegisterServiceCtrlHandlerW( LPCWSTR lpServiceName,
*/ */
BOOL WINAPI BOOL WINAPI
SetServiceStatus( SERVICE_STATUS_HANDLE hService, LPSERVICE_STATUS lpStatus ) SetServiceStatus( SERVICE_STATUS_HANDLE hService, LPSERVICE_STATUS lpStatus )
{ FIXME("%x %p\n",hService, lpStatus); { FIXME("0x%lx %p\n",hService, lpStatus);
TRACE("\tType:%lx\n",lpStatus->dwServiceType); TRACE("\tType:%lx\n",lpStatus->dwServiceType);
TRACE("\tState:%lx\n",lpStatus->dwCurrentState); TRACE("\tState:%lx\n",lpStatus->dwCurrentState);
TRACE("\tControlAccepted:%lx\n",lpStatus->dwControlsAccepted); TRACE("\tControlAccepted:%lx\n",lpStatus->dwControlsAccepted);
...@@ -203,7 +203,7 @@ OpenSCManagerA( LPCSTR lpMachineName, LPCSTR lpDatabaseName, ...@@ -203,7 +203,7 @@ OpenSCManagerA( LPCSTR lpMachineName, LPCSTR lpDatabaseName,
{ {
LPWSTR lpMachineNameW = HEAP_strdupAtoW(GetProcessHeap(),0,lpMachineName); LPWSTR lpMachineNameW = HEAP_strdupAtoW(GetProcessHeap(),0,lpMachineName);
LPWSTR lpDatabaseNameW = HEAP_strdupAtoW(GetProcessHeap(),0,lpDatabaseName); LPWSTR lpDatabaseNameW = HEAP_strdupAtoW(GetProcessHeap(),0,lpDatabaseName);
DWORD ret = OpenSCManagerW(lpMachineNameW,lpDatabaseNameW, SC_HANDLE ret = OpenSCManagerW(lpMachineNameW,lpDatabaseNameW,
dwDesiredAccess); dwDesiredAccess);
HeapFree(GetProcessHeap(),0,lpDatabaseNameW); HeapFree(GetProcessHeap(),0,lpDatabaseNameW);
HeapFree(GetProcessHeap(),0,lpMachineNameW); HeapFree(GetProcessHeap(),0,lpMachineNameW);
...@@ -315,7 +315,7 @@ OpenServiceA( SC_HANDLE hSCManager, LPCSTR lpServiceName, ...@@ -315,7 +315,7 @@ OpenServiceA( SC_HANDLE hSCManager, LPCSTR lpServiceName,
DWORD dwDesiredAccess ) DWORD dwDesiredAccess )
{ {
LPWSTR lpServiceNameW = HEAP_strdupAtoW(GetProcessHeap(),0,lpServiceName); LPWSTR lpServiceNameW = HEAP_strdupAtoW(GetProcessHeap(),0,lpServiceName);
DWORD ret; SC_HANDLE ret;
if(lpServiceName) if(lpServiceName)
TRACE("Request for service %s\n",lpServiceName); TRACE("Request for service %s\n",lpServiceName);
...@@ -380,7 +380,7 @@ CreateServiceW( SC_HANDLE hSCManager, LPCWSTR lpServiceName, ...@@ -380,7 +380,7 @@ CreateServiceW( SC_HANDLE hSCManager, LPCWSTR lpServiceName,
LPCWSTR lpPassword ) LPCWSTR lpPassword )
{ {
FIXME("(%u,%s,%s,...)\n", hSCManager, debugstr_w(lpServiceName), debugstr_w(lpDisplayName)); FIXME("(%u,%s,%s,...)\n", hSCManager, debugstr_w(lpServiceName), debugstr_w(lpDisplayName));
return FALSE; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment