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:
parent
986b33d171
commit
eb885a750f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue