Commit 753e4ee9 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

Don't call Release on a null ptr.

parent 73c72390
......@@ -5064,7 +5064,10 @@ static HRESULT WINAPI ITypeInfo_fnInvoke(
* variants here too */
if ((V_VT(&varresult) == (VT_UNKNOWN | VT_BYREF)) ||
(V_VT(&varresult) == (VT_DISPATCH | VT_BYREF)))
IUnknown_Release(*V_UNKNOWNREF(&varresult));
{
if(*V_UNKNOWNREF(&varresult))
IUnknown_Release(*V_UNKNOWNREF(&varresult));
}
break;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment