Commit 80120d62 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

dxgi: Avoid possible NULL pointer access in d3d11_swapchain_SetFullscreenState().

parent 89b8f3d7
......@@ -252,12 +252,11 @@ static HRESULT STDMETHODCALLTYPE DECLSPEC_HOTPATCH d3d11_swapchain_SetFullscreen
if (swapchain->target)
IDXGIOutput_Release(swapchain->target);
swapchain->target = target;
}
else
{
IDXGIOutput_Release(target);
return S_OK;
}
if (target)
IDXGIOutput_Release(target);
return hr;
}
......
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