Michael Stefaniuc : ddraw: Add missing unlock on an error path (Smatch).

Alexandre Julliard julliard at winehq.org
Wed Sep 29 12:00:13 CDT 2010


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Sep 28 22:44:14 2010 +0200

ddraw: Add missing unlock on an error path (Smatch).

---

 dlls/ddraw/ddraw.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c
index f3ebade..346c7c5 100644
--- a/dlls/ddraw/ddraw.c
+++ b/dlls/ddraw/ddraw.c
@@ -2947,6 +2947,7 @@ static HRESULT CreateSurface(IDirectDraw7 *iface,
     if((DDSD->ddsCaps.dwCaps & (DDSCAPS_BACKBUFFER | DDSCAPS_PRIMARYSURFACE)) == (DDSCAPS_BACKBUFFER | DDSCAPS_PRIMARYSURFACE))
     {
         WARN("Application wanted to create back buffer primary surface\n");
+        LeaveCriticalSection(&ddraw_cs);
         return DDERR_INVALIDCAPS;
     }
 




More information about the wine-cvs mailing list