Don't try waiting for the service process to start if the

CreateProcess call failed.
This commit is contained in:
Rob Shearman 2005-11-21 12:00:16 +00:00 committed by Alexandre Julliard
parent 77da201e8f
commit 01a4245a51
1 changed files with 2 additions and 1 deletions

View File

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