Piotr Caban : advapi32: Don' t terminate service when its last thread has exited.

Alexandre Julliard julliard at winehq.org
Mon Oct 22 13:42:45 CDT 2012


Module: wine
Branch: master
Commit: 8ebf0a72c941e07563853f9e60fdecf86dcc6a74
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8ebf0a72c941e07563853f9e60fdecf86dcc6a74

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Mon Oct 22 14:25:54 2012 +0200

advapi32: Don't terminate service when its last thread has exited.

---

 dlls/advapi32/service.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/dlls/advapi32/service.c b/dlls/advapi32/service.c
index 1f585dc..07b9e4b 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;
     }




More information about the wine-cvs mailing list