PATCH: coerce VT_EMPTY to VT_I4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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;



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux