mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 02:52:10 +01:00
[util] Fix possible crash with null interfaces in private storage
This commit is contained in:
parent
9ef94e28ac
commit
6f6e12a329
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user