Michael Stefaniuc : windowscodecs: Unlock not lock again when leaving the function (Smatch).

Alexandre Julliard julliard at winehq.org
Mon Apr 19 11:51:14 CDT 2010


Module: wine
Branch: master
Commit: 2f8d9ccba98ee30071f464e2399074565da4f9e2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2f8d9ccba98ee30071f464e2399074565da4f9e2

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Sat Apr 17 23:07:29 2010 +0200

windowscodecs: Unlock not lock again when leaving the function (Smatch).

---

 dlls/windowscodecs/pngformat.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/windowscodecs/pngformat.c b/dlls/windowscodecs/pngformat.c
index 3dcbd9a..a3c7730 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;
 }




More information about the wine-cvs mailing list