[Bug 27106] IMSSA EuroDEEM (VB6 app) fails on startup, reporting "Type MisMatch" error (VARIANT_Coerce: treat VT_NULL like VT_EMPTY when converting to VT_BSTR)
wine-bugs at winehq.org
wine-bugs at winehq.org
Sun Jan 12 12:57:03 CST 2014
https://bugs.winehq.org/show_bug.cgi?id=27106
--- Comment #6 from Nikolay Sivov <bunglehead at gmail.com> ---
(In reply to comment #4)
>
> __vbaVarCat: left=VT_DISPATCH, right=VT_BSTR
>
> IDispatch_Invoke() succeeds and returns VT_NULL type for default 'value'
> property (see MSDATL3 calls which happen during IDispatch invoke).
>
> The problem is the conversion to VT_BSTR.
>
> VARIANT_FromDisp() -> VariantChangeTypeEx() -> VARIANT_Coerce()
>
> Wine doesn't handle the case VT_NULL -> VT_BSTR properly, leading to
> conversion failure (DISP_E_TYPEMISMATCH).
Apparently we have some tests for that, and it should actually fail as it does
now. It seems to me that a problem is in VARIANT_FromDisp(), vartype.c has a
comment about some complication to test it.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list