Take type from referenced variant for VT_BYREF && VT_VARIANT.

This commit is contained in:
Lawson Whitney 2000-03-09 18:31:52 +00:00 committed by Alexandre Julliard
parent 05f0b71bb3
commit a18fc8a7c7
1 changed files with 3 additions and 0 deletions

View File

@ -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;