1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-17 17:52:11 +01:00

[util] Fix possible crash with null interfaces in private storage

This commit is contained in:
Philip Rebohle 2018-03-21 15:09:08 +01:00
parent 9ef94e28ac
commit 6f6e12a329
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -23,7 +23,8 @@ namespace dxvk {
const IUnknown* iface)
: m_guid (guid),
m_iface (const_cast<IUnknown*>(iface)) {
m_iface->AddRef();
if (m_iface != nullptr)
m_iface->AddRef();
}