Commit eb885a75 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

oleaut32: Initialize pRetVal in ITypeInfo::Invoke before calling VariantCopyInd

as native doesn't assume that it doesn't contain valid data.
parent 986b33d1
......@@ -5391,8 +5391,11 @@ static HRESULT WINAPI ITypeInfo_fnInvoke(
}
if (pVarResult)
{
VariantInit(pVarResult);
/* deref return value */
hres = VariantCopyInd(pVarResult, prgpvarg[i]);
}
/* free data stored in varresult. Note that
* VariantClear doesn't do what we want because we are
......
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