forked from Mirrors/wine-wine
advapi32: Accept a NULL lpServiceStatus in ControlService.
parent
95fa37ff84
commit
038c3a264b
|
@ -1037,6 +1037,8 @@ BOOL WINAPI ControlService( SC_HANDLE hService, DWORD dwControl,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
if (lpServiceStatus)
|
||||
{
|
||||
ret = QueryServiceStatus(hService, lpServiceStatus);
|
||||
if (!ret)
|
||||
{
|
||||
|
@ -1058,6 +1060,7 @@ BOOL WINAPI ControlService( SC_HANDLE hService, DWORD dwControl,
|
|||
SetLastError(ERROR_SERVICE_CANNOT_ACCEPT_CTRL);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
handle = service_open_pipe(hsvc->name);
|
||||
if (handle!=INVALID_HANDLE_VALUE)
|
||||
|
|
Loading…
Reference in New Issue