Commit a18fc8a7 authored by Lawson Whitney's avatar Lawson Whitney Committed by Alexandre Julliard

Take type from referenced variant for VT_BYREF && VT_VARIANT.

parent 05f0b71b
......@@ -1905,6 +1905,9 @@ HRESULT WINAPI VariantCopyInd(VARIANT* pvargDest, VARIANTARG* pvargSrc)
/* Dereference the inner variant.
*/
res = VariantCopyInd( pvargDest, pvargSrc->u.pvarVal );
/* We must also copy its type, I think.
*/
pvargSrc->vt = pvargSrc->u.pvarVal->vt;
}
}
break;
......
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