Commit 8ebf0a72 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

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

parent a936b58b
...@@ -547,7 +547,6 @@ static BOOL service_run_main_thread(void) ...@@ -547,7 +547,6 @@ static BOOL service_run_main_thread(void)
{ {
services[wait_services[ret]]->thread = 0; services[wait_services[ret]]->thread = 0;
CloseHandle( wait_handles[ret] ); CloseHandle( wait_handles[ret] );
if (n == 5) return TRUE; /* it was the last running thread */
} }
else return FALSE; else return FALSE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment