rpcrt4: Add missing LeaveCriticalSection. Found by Smatch.

Michael Stefaniuc mstefani at redhat.de
Mon Dec 17 15:28:00 CST 2007


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

diff --git a/dlls/rpcrt4/rpc_assoc.c b/dlls/rpcrt4/rpc_assoc.c
index 173ba71..7793c48 100644
--- a/dlls/rpcrt4/rpc_assoc.c
+++ b/dlls/rpcrt4/rpc_assoc.c
@@ -137,6 +137,7 @@ RPC_STATUS RpcServerAssoc_GetAssociation(LPCSTR Protseq, LPCSTR NetworkAddr,
             }
         }
         *assoc_out = NULL;
+        LeaveCriticalSection(&assoc_list_cs);
         return RPC_S_NO_CONTEXT_AVAILABLE;
     }
 
-- 
1.5.3.6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071217/62519e7f/attachment.pgp 


More information about the wine-patches mailing list