1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-18 22:54:15 +01:00

[d3d11] Fix crash in GetMaximumFrameLatency with a nullptr argument

This commit is contained in:
Philip Rebohle 2019-06-11 16:36:43 +02:00
parent 96b9058fbf
commit acab2bd8ce
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -2026,6 +2026,9 @@ namespace dxvk {
HRESULT STDMETHODCALLTYPE D3D11DXGIDevice::GetMaximumFrameLatency(
UINT* pMaxLatency) {
if (!pMaxLatency)
return DXGI_ERROR_INVALID_CALL;
*pMaxLatency = m_frameLatency;
return S_OK;
}