Commit 8bf4d766 authored by Troy Rollo's avatar Troy Rollo Committed by Alexandre Julliard

Correct test of BOOL return value in ControlService.

parent fa18fad2
......@@ -1036,7 +1036,7 @@ BOOL WINAPI ControlService( SC_HANDLE hService, DWORD dwControl,
}
ret = QueryServiceStatus(hService, lpServiceStatus);
if (ret)
if (!ret)
{
ERR("failed to query service status\n");
SetLastError(ERROR_SERVICE_NOT_ACTIVE);
......
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