Commit fec49d11 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

dxgi: Added missing unlock (Coverity).

parent 50c8766c
...@@ -381,6 +381,7 @@ HWND dxgi_factory_get_device_window(struct dxgi_factory *factory) ...@@ -381,6 +381,7 @@ HWND dxgi_factory_get_device_window(struct dxgi_factory *factory)
if (!(factory->device_window = CreateWindowA("static", "DXGI device window", if (!(factory->device_window = CreateWindowA("static", "DXGI device window",
WS_DISABLED, 0, 0, 0, 0, NULL, NULL, NULL, NULL))) WS_DISABLED, 0, 0, 0, 0, NULL, NULL, NULL, NULL)))
{ {
LeaveCriticalSection(&dxgi_cs);
ERR("Failed to create a window.\n"); ERR("Failed to create a window.\n");
return NULL; return NULL;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment