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

as native doesn't assume that it doesn't contain valid data.
This commit is contained in:
Robert Shearman 2006-07-24 11:45:30 +01:00 committed by Alexandre Julliard
parent 986b33d171
commit eb885a750f
1 changed files with 3 additions and 0 deletions

View File

@ -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