Don't try waiting for the service process to start if the
CreateProcess call failed.
This commit is contained in:
parent
77da201e8f
commit
01a4245a51
|
@ -1535,7 +1535,8 @@ BOOL WINAPI StartServiceW(SC_HANDLE hService, DWORD dwNumServiceArgs,
|
|||
|
||||
TRACE("returning %d\n", r);
|
||||
|
||||
service_wait_for_startup(hService);
|
||||
if (r)
|
||||
service_wait_for_startup(hService);
|
||||
|
||||
return r;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue