Sven Baars : mf: Leave instead of enter a critical section.

Alexandre Julliard julliard at winehq.org
Mon Oct 21 15:28:36 CDT 2019


Module: wine
Branch: master
Commit: 96062c4c79f431e4e5d268c7190cba169cc325e5
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=96062c4c79f431e4e5d268c7190cba169cc325e5

Author: Sven Baars <sven.wine at gmail.com>
Date:   Sun Oct 20 13:20:31 2019 +0200

mf: Leave instead of enter a critical section.

Signed-off-by: Sven Baars <sven.wine at gmail.com>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mf/samplegrabber.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/mf/samplegrabber.c b/dlls/mf/samplegrabber.c
index c3dc2e1b7f..205bc70b1b 100644
--- a/dlls/mf/samplegrabber.c
+++ b/dlls/mf/samplegrabber.c
@@ -1040,7 +1040,7 @@ static HRESULT WINAPI sample_grabber_sink_Shutdown(IMFMediaSink *iface)
         IMFStreamSink_Release(&grabber->stream->IMFStreamSink_iface);
         grabber->stream = NULL;
     }
-    EnterCriticalSection(&grabber->cs);
+    LeaveCriticalSection(&grabber->cs);
 
     return hr;
 }




More information about the wine-cvs mailing list