mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +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