Commit 816f8656 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

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

parent fb9d1194
......@@ -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)
{
......
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