Take type from referenced variant for VT_BYREF && VT_VARIANT.
This commit is contained in:
parent
05f0b71bb3
commit
a18fc8a7c7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue