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