From 2f8d9ccba98ee30071f464e2399074565da4f9e2 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Sat, 17 Apr 2010 23:07:29 +0200 Subject: [PATCH] windowscodecs: Unlock not lock again when leaving the function (Smatch). --- dlls/windowscodecs/pngformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/windowscodecs/pngformat.c b/dlls/windowscodecs/pngformat.c index 3dcbd9aeb44..a3c7730a267 100644 --- a/dlls/windowscodecs/pngformat.c +++ b/dlls/windowscodecs/pngformat.c @@ -1384,7 +1384,7 @@ static HRESULT WINAPI PngEncoder_Commit(IWICBitmapEncoder *iface) This->committed = TRUE; - EnterCriticalSection(&This->lock); + LeaveCriticalSection(&This->lock); return S_OK; }