variant patch
Ove Kaaven
ovek at arcticnet.no
Wed Oct 3 17:33:36 CDT 2001
Log:
Ove Kaaven <ovek at transgaming.com>
Implement coercion to VT_UNKNOWN from VT_DISPATCH.
Index: dlls/oleaut32/variant.c
===================================================================
RCS file: /home/wine/wine/dlls/oleaut32/variant.c,v
retrieving revision 1.27
diff -u -r1.27 variant.c
--- dlls/oleaut32/variant.c 2001/10/02 18:28:31 1.27
+++ dlls/oleaut32/variant.c 2001/10/03 20:59:44
@@ -1566,6 +1578,18 @@
break;
}
break;
+
+ case( VT_UNKNOWN ):
+ if (vtFrom == VT_DISPATCH)
+ {
+ res = IDispatch_QueryInterface(V_DISPATCH(ps), &IID_IUnknown, (LPVOID*)&V_UNKNOWN(pd));
+ }
+ else
+ {
+ res = DISP_E_TYPEMISMATCH;
+ FIXME("Coercion from %d to %d\n", vtFrom, vt );
+ }
+ break;
default:
res = DISP_E_TYPEMISMATCH;
More information about the wine-patches
mailing list