[host] dxgi: check for correct comRef usage
This commit is contained in:
1 parent
c591f7a8ae
commit
52410beea7
2 files changed
+20
-1
No files matched your search
@@ -58,6 +58,9 @@ IUnknown ** comRef_newLocal(IUnknown *** dst);
|
||||
*/
|
||||
inline static ULONG comRef_release(IUnknown ** ref)
|
||||
{
|
||||
if (!ref)
|
||||
return 0;
|
||||
|
||||
ULONG count = 0;
|
||||
if (*ref)
|
||||
count = IUnknown_Release(*ref);
|
||||
|
||||
Reference in new issue
Block a user