mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Don't return video interface if real interface is missing. Closes #3735
This commit is contained in:
@@ -51,9 +51,17 @@ HRESULT STDMETHODCALLTYPE WrappedID3D11VideoDevice2::QueryInterface(REFIID riid,
|
||||
}
|
||||
else if(riid == __uuidof(ID3D11VideoDevice))
|
||||
{
|
||||
*ppvObject = (ID3D11VideoDevice *)this;
|
||||
AddRef();
|
||||
return S_OK;
|
||||
if(m_pReal)
|
||||
{
|
||||
*ppvObject = (ID3D11VideoDevice *)this;
|
||||
AddRef();
|
||||
return S_OK;
|
||||
}
|
||||
else
|
||||
{
|
||||
*ppvObject = NULL;
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
}
|
||||
else if(riid == __uuidof(ID3D11VideoDevice1))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user