Fix CreateService's error code for a service that already exists.

oldstable
Mike McCormack 2004-12-27 17:44:47 +00:00 committed by Alexandre Julliard
parent fb9d11941f
commit 816f86560e
1 changed files with 3 additions and 0 deletions

View File

@ -1024,7 +1024,10 @@ CreateServiceW( SC_HANDLE hSCManager, LPCWSTR lpServiceName,
init_service_handle( retval, hscm, hKey, lpServiceName );
if (dp != REG_CREATED_NEW_KEY)
{
SetLastError(ERROR_SERVICE_EXISTS);
goto error;
}
if(lpDisplayName)
{