[PATCH] quartz: Add missing LeaveCriticalSection on error path (Smatch).

Michael Stefaniuc mstefani at redhat.de
Thu Jul 10 17:10:02 CDT 2008


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

diff --git a/dlls/quartz/dsoundrender.c b/dlls/quartz/dsoundrender.c
index 7a6ec3d..aae7e68 100644
--- a/dlls/quartz/dsoundrender.c
+++ b/dlls/quartz/dsoundrender.c
@@ -894,6 +894,7 @@ static HRESULT WINAPI DSoundRender_InputPin_EndOfStream(IPin * iface)
     if (hr != S_OK)
     {
         ERR("%08x\n", hr);
+        LeaveCriticalSection(This->pin.pCritSec);
         return hr;
     }
 
-- 
1.5.6.2
-------------- 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/20080711/1f19603f/attachment.pgp 


More information about the wine-patches mailing list