Return the correct error when OpenService is called with a

non-existing service.
oldstable
Mike McCormack 2004-09-06 20:28:32 +00:00 committed by Alexandre Julliard
parent 2fbed28b43
commit 8100e0eec2
1 changed files with 1 additions and 0 deletions

View File

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