From 01a4245a5187d546abbf3b49f5ded0323c1ea8ff Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Mon, 21 Nov 2005 12:00:16 +0000 Subject: [PATCH] Don't try waiting for the service process to start if the CreateProcess call failed. --- dlls/advapi32/service.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/advapi32/service.c b/dlls/advapi32/service.c index 9161f9bbbe..cc6a36c28d 100644 --- a/dlls/advapi32/service.c +++ b/dlls/advapi32/service.c @@ -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; } -- 2.32.0.93.g670b81a890