From 8ebf0a72c941e07563853f9e60fdecf86dcc6a74 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Mon, 22 Oct 2012 14:25:54 +0200 Subject: [PATCH] advapi32: Don't terminate service when its last thread has exited. --- dlls/advapi32/service.c | 1 - 1 file changed, 1 deletion(-) diff --git a/dlls/advapi32/service.c b/dlls/advapi32/service.c index 1f585dcd8b6..07b9e4bc078 100644 --- a/dlls/advapi32/service.c +++ b/dlls/advapi32/service.c @@ -547,7 +547,6 @@ static BOOL service_run_main_thread(void) { services[wait_services[ret]]->thread = 0; CloseHandle( wait_handles[ret] ); - if (n == 5) return TRUE; /* it was the last running thread */ } else return FALSE; }