Correct test of BOOL return value in ControlService.
This commit is contained in:
parent
fa18fad2b0
commit
8bf4d76681
|
@ -1036,7 +1036,7 @@ BOOL WINAPI ControlService( SC_HANDLE hService, DWORD dwControl,
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = QueryServiceStatus(hService, lpServiceStatus);
|
ret = QueryServiceStatus(hService, lpServiceStatus);
|
||||||
if (ret)
|
if (!ret)
|
||||||
{
|
{
|
||||||
ERR("failed to query service status\n");
|
ERR("failed to query service status\n");
|
||||||
SetLastError(ERROR_SERVICE_NOT_ACTIVE);
|
SetLastError(ERROR_SERVICE_NOT_ACTIVE);
|
||||||
|
|
Loading…
Reference in New Issue