advapi32: Accept a NULL lpServiceStatus in ControlService.

oldstable
Paul Chitescu 2008-01-09 19:58:48 +02:00 committed by Alexandre Julliard
parent 95fa37ff84
commit 038c3a264b
1 changed files with 21 additions and 18 deletions

View File

@ -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)