1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-12 13:08:50 +01:00

[dxgi] Also support use after free in IDXGISwapChain::SetFullscreenState()

This commit is contained in:
Paul Gofman 2022-08-09 14:47:19 -05:00 committed by Philip Rebohle
parent 8580bb32ca
commit 59441b1ff5

View File

@ -224,7 +224,9 @@ namespace dxvk {
HRESULT STDMETHODCALLTYPE SetFullscreenState(
BOOL Fullscreen,
IDXGIOutput* pTarget) final {
return m_dispatch->SetFullscreenState(Fullscreen, pTarget);
if (likely(m_dispatch != nullptr))
return m_dispatch->SetFullscreenState(Fullscreen, pTarget);
return S_OK;
}