Commit 84213a37 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Handle VT_PTR->VT_VARIANT arguments of Invoke.

parent cdfcef24
......@@ -4214,6 +4214,11 @@ _copy_arg( ITypeInfo2 *tinfo, TYPEDESC *tdesc,
UINT arglen = _argsize(vt)*sizeof(DWORD);
VARTYPE oldvt;
if ((vt==VT_PTR) && tdesc && (tdesc->u.lptdesc->vt == VT_VARIANT)) {
memcpy(argpos,&arg,sizeof(void*));
return S_OK;
}
if (V_VT(arg) == vt) {
memcpy(argpos, &V_UNION(arg,lVal), arglen);
return S_OK;
......
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