Commit 8100e0ee authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Return the correct error when OpenService is called with a

non-existing service.
parent 2fbed28b
......@@ -533,6 +533,7 @@ SC_HANDLE WINAPI OpenServiceW( SC_HANDLE hSCManager, LPCWSTR lpServiceName,
if (r!=ERROR_SUCCESS)
{
free_sc_handle( retval );
SetLastError( ERROR_SERVICE_DOES_NOT_EXIST );
return NULL;
}
......
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