oleaut32: Dont filter out VT_RECORD|VT_REF type in VariantCopyInd.

This commit is contained in:
Alistair Leslie-Hughes 2011-07-09 14:38:11 +10:00 committed by Alexandre Julliard
parent 9b2968dc77
commit d457956c58
1 changed files with 1 additions and 1 deletions

View File

@ -872,7 +872,7 @@ HRESULT WINAPI VariantCopyInd(VARIANT* pvargDest, VARIANTARG* pvargSrc)
/* Argument checking is more lax than VariantCopy()... */
vt = V_TYPE(pvargSrc);
if (V_ISARRAY(pvargSrc) ||
if (V_ISARRAY(pvargSrc) || (V_VT(pvargSrc) == (VT_RECORD|VT_BYREF)) ||
(vt > VT_NULL && vt != (VARTYPE)15 && vt < VT_VOID &&
!(V_VT(pvargSrc) & (VT_VECTOR|VT_RESERVED))))
{