Module: wine Branch: master Commit: 71e9455b7345a02439dfc6ea76ae0c2e707224db URL: http://source.winehq.org/git/wine.git/?a=commit;h=71e9455b7345a02439dfc6ea76...
Author: Michael Stefaniuc mstefani@redhat.de Date: Tue Apr 8 23:13:19 2008 +0200
quartz: Add missing lock releases on some code paths (Smatch).
---
dlls/quartz/parser.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/quartz/parser.c b/dlls/quartz/parser.c index 670a0c3..a369de2 100644 --- a/dlls/quartz/parser.c +++ b/dlls/quartz/parser.c @@ -223,6 +223,7 @@ static HRESULT WINAPI Parser_Stop(IBaseFilter * iface) if (This->state == State_Stopped) { LeaveCriticalSection(&This->csFilter); + LeaveCriticalSection(&pin->thread_lock); return S_OK; } This->state = State_Stopped; @@ -248,6 +249,7 @@ static HRESULT WINAPI Parser_Pause(IBaseFilter * iface) if (This->state == State_Paused) { LeaveCriticalSection(&This->csFilter); + LeaveCriticalSection(&pin->thread_lock); return S_OK; }
@@ -284,6 +286,7 @@ static HRESULT WINAPI Parser_Run(IBaseFilter * iface, REFERENCE_TIME tStart) if (This->state == State_Running) { LeaveCriticalSection(&This->csFilter); + LeaveCriticalSection(&pin->thread_lock); return S_OK; }