VT_EMPTY can be coerced to VT_I4, value 0.

This commit is contained in:
Marcus Meissner 2002-02-04 18:31:53 +00:00 committed by Alexandre Julliard
parent ec7c2a80b2
commit a79dcc46eb
1 changed files with 4 additions and 0 deletions

View File

@ -1017,6 +1017,10 @@ static HRESULT Coerce( VARIANTARG* pd, LCID lcid, ULONG dwFlags, VARIANTARG* ps,
case( VT_I4 ):
switch( vtFrom )
{
case( VT_EMPTY ):
V_UNION(pd,lVal) = 0;
res = S_OK;
break;
case( VT_I1 ):
res = VarI4FromI1( V_UNION(ps,cVal), &V_UNION(pd,lVal) );
break;