Fix deadlock caused by not leaving the critical section on all code paths.
diff --git a/dlls/rpcrt4/rpc_server.c b/dlls/rpcrt4/rpc_server.c index eae8dea..6d4fa5b 100644 --- a/dlls/rpcrt4/rpc_server.c +++ b/dlls/rpcrt4/rpc_server.c
@@ -591,12 +591,13 @@ if (!worker_tls) worker_tls = TlsAlloc(); std_listen = TRUE; server_thread = CreateThread(NULL, 0, RPCRT4_server_thread, NULL, 0, NULL); - LeaveCriticalSection(&listen_cs); } else { LeaveCriticalSection(&listen_cs); RPCRT4_sync_with_server_thread(); + return; } } + LeaveCriticalSection(&listen_cs); } static void RPCRT4_stop_listen(BOOL auto_listen)