Correct test of BOOL return value in ControlService.

This commit is contained in:
Troy Rollo 2005-04-19 10:24:22 +00:00 committed by Alexandre Julliard
parent fa18fad2b0
commit 8bf4d76681
1 changed files with 1 additions and 1 deletions

View File

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