[PATCH 6/6] mfplat: Unlock section after finishing.

Nikolay Sivov nsivov at codeweavers.com
Fri Mar 8 00:57:46 CST 2019


From: Jactry Zeng <jzeng at codeweavers.com>

Signed-off-by: Jactry Zeng <jzeng at codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/mfplat/buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/mfplat/buffer.c b/dlls/mfplat/buffer.c
index 164f8f7d46..f6eecb68cb 100644
--- a/dlls/mfplat/buffer.c
+++ b/dlls/mfplat/buffer.c
@@ -525,7 +525,7 @@ static HRESULT WINAPI sample_GetBufferCount(IMFSample *iface, DWORD *count)
 
     EnterCriticalSection(&sample->cs);
     *count = sample->buffer_count;
-    EnterCriticalSection(&sample->cs);
+    LeaveCriticalSection(&sample->cs);
 
     return S_OK;
 }
-- 
2.20.1




More information about the wine-devel mailing list