[RPCRT4] fix RpcMgmtWaitServerListen

Damjan Jovanovic damjan.jov at gmail.com
Fri Oct 13 15:36:27 CDT 2006


Changelog:
* Make RpcMgmtWaitServerListen wait for the server to stop listening,
like it is supposed to.

Damjan Jovanovic
-------------- next part --------------
--- a/dlls/rpcrt4/rpc_server.c	2006-10-13 19:13:33.000000000 +0200
+++ b/dlls/rpcrt4/rpc_server.c	2006-10-13 22:39:55.000000000 +0200
@@ -912,11 +912,15 @@
     LeaveCriticalSection(&listen_cs);
     return RPC_S_NOT_LISTENING;
   }
+
+  do {
+    LeaveCriticalSection(&listen_cs);
+    WaitForSingleObject(server_ready_event, INFINITE);
+    EnterCriticalSection(&listen_cs);
+  } while (!std_listen);
   
   LeaveCriticalSection(&listen_cs);
 
-  FIXME("not waiting for server calls to finish\n");
-
   return RPC_S_OK;
 }
 


More information about the wine-patches mailing list