Kaydet (Commit) 3cd3d104 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Pass missing (hopefully optional) parameters as Any()

Change-Id: I93e69e589cd81fbc9606b1b08233da7fb8f5d043
Reviewed-on: https://gerrit.libreoffice.org/50089Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarTor Lillqvist <tml@collabora.com>
üst 16a3d8f4
......@@ -813,6 +813,17 @@ STDMETHODIMP InterfaceOleWrapper_Impl::Invoke(DISPID dispidMember,
convertDispparamsArgs(dispidMember, wFlags, pdispparams , params );
// Pass missing (hopefully optional) parameters as Any().
InvocationInfo aInvocationInfo;
getInvocationInfoForCall(dispidMember, aInvocationInfo);
if (pdispparams->cArgs < (UINT)aInvocationInfo.aParamTypes.getLength())
{
params.realloc(aInvocationInfo.aParamTypes.getLength());
Any* pParams = params.getArray();
for (int i = pdispparams->cArgs; i < aInvocationInfo.aParamTypes.getLength(); ++i)
pParams[i] = Any();
}
ret= doInvoke(pdispparams, pvarResult,
pexcepinfo, puArgErr, d.name, params);
}
......
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