Michael Stefaniuc : quartz: Add missing LeaveCriticalSection on error path (Smatch).

Alexandre Julliard julliard at winehq.org
Fri Jul 11 08:44:21 CDT 2008


Module: wine
Branch: master
Commit: 5c0ff73db2abc6211d0aeda669cad66da3d52b32
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5c0ff73db2abc6211d0aeda669cad66da3d52b32

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Fri Jul 11 00:10:02 2008 +0200

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

---

 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;
     }
 




More information about the wine-cvs mailing list