Commit 0e5bd51d authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

oleaut32: Copy BYREF args directly if they have the same variant type.

parent 1660c504
......@@ -5264,6 +5264,11 @@ static HRESULT WINAPI ITypeInfo_fnInvoke(
V_BYREF(&rgvarg[i]) = &V_NONE(&missing_arg[i]);
V_VT(&rgvarg[i]) = rgvt[i];
}
else if ((rgvt[i] & VT_BYREF) && (rgvt[i] == V_VT(src_arg)))
{
V_BYREF(&rgvarg[i]) = V_BYREF(src_arg);
V_VT(&rgvarg[i]) = rgvt[i];
}
else
{
/* FIXME: this doesn't work for VT_BYREF arguments if
......
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