Marcus Meissner : dxgi: Added missing unlock (Coverity).

Alexandre Julliard julliard at wine.codeweavers.com
Tue Sep 23 14:03:01 CDT 2014


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

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Tue Sep 23 08:46:34 2014 +0200

dxgi: Added missing unlock (Coverity).

---

 dlls/dxgi/factory.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/dxgi/factory.c b/dlls/dxgi/factory.c
index 9dbcb3e..1e22f6f 100644
--- a/dlls/dxgi/factory.c
+++ b/dlls/dxgi/factory.c
@@ -381,6 +381,7 @@ HWND dxgi_factory_get_device_window(struct dxgi_factory *factory)
         if (!(factory->device_window = CreateWindowA("static", "DXGI device window",
                 WS_DISABLED, 0, 0, 0, 0, NULL, NULL, NULL, NULL)))
         {
+            LeaveCriticalSection(&dxgi_cs);
             ERR("Failed to create a window.\n");
             return NULL;
         }




More information about the wine-cvs mailing list