Commit c46386ff authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

ole: Return the last error if we couldn't open the requested service.

Fix the ok/failed message.
parent 4e31bf68
......@@ -698,9 +698,11 @@ static DWORD start_local_service(LPCWSTR name, DWORD num, LPWSTR *params)
r = ERROR_SUCCESS;
CloseServiceHandle(hsvc);
}
else
r = GetLastError();
CloseServiceHandle(handle);
TRACE("StartService returned error %ld (%s)\n", r, r?"ok":"failed");
TRACE("StartService returned error %ld (%s)\n", r, (r == ERROR_SUCCESS) ? "ok":"failed");
return r;
}
......
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