PATCH: coerce VT_EMPTY to VT_I4
Marcus Meissner
marcus at jet.franken.de
Sun Feb 3 13:44:20 CST 2002
Hi,
Changelog:
VT_EMPTY can be coerced to VT_I4, value 0.
Index: variant.c
===================================================================
RCS file: /home/wine/wine/dlls/oleaut32/variant.c,v
retrieving revision 1.31
diff -u -r1.31 variant.c
--- variant.c 2002/01/29 02:44:44 1.31
+++ variant.c 2002/02/03 17:51:12
@@ -1017,6 +1017,10 @@
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;
More information about the wine-patches
mailing list