dxgi: Avoid possible NULL pointer access in d3d11_swapchain_SetFullscreenState().
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
89b8f3d712
commit
80120d62eb
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue