Sebastian Lackner : rpcrt4: Hold CS while iterating through protseqs list.
Module: wine Branch: master Commit: ce2080ac6059ac7ccdd252f2cdcb9c6dbd65052d URL: https://source.winehq.org/git/wine.git/?a=commit;h=ce2080ac6059ac7ccdd252f2c... Author: Sebastian Lackner <sebastian(a)fds-team.de> Date: Mon Apr 9 02:18:00 2018 +0000 rpcrt4: Hold CS while iterating through protseqs list. Signed-off-by: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/rpcrt4/rpc_server.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/rpcrt4/rpc_server.c b/dlls/rpcrt4/rpc_server.c index c350c59..d1b5d64 100644 --- a/dlls/rpcrt4/rpc_server.c +++ b/dlls/rpcrt4/rpc_server.c @@ -806,8 +806,10 @@ static RPC_STATUS RPCRT4_stop_listen(BOOL auto_listen) if (stop_listen) { RpcServerProtseq *cps; + EnterCriticalSection(&server_cs); LIST_FOR_EACH_ENTRY(cps, &protseqs, RpcServerProtseq, entry) RPCRT4_sync_with_server_thread(cps); + LeaveCriticalSection(&server_cs); } if (!auto_listen)
participants (1)
-
Alexandre Julliard