Commit a79dcc46 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

VT_EMPTY can be coerced to VT_I4, value 0.

parent ec7c2a80
......@@ -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;
......
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