[host] dxgi: check for correct comRef usage

This commit is contained in:
Geoffrey McRae committed 2023-10-29 20:29:14 +11:00
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);