Module: wine Branch: master Commit: a1e117b79e289a83374545fd399682afe7d20ae1 URL: https://source.winehq.org/git/wine.git/?a=commit;h=a1e117b79e289a83374545fd3...
Author: Jactry Zeng jzeng@codeweavers.com Date: Fri Mar 8 09:57:46 2019 +0300
mfplat: Unlock section after finishing.
Signed-off-by: Jactry Zeng jzeng@codeweavers.com Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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 164f8f7..f6eecb6 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; }