a7284ee6
by Francis De Brabandere at 2026-05-18T21:58:30+02:00
vbscript: Raise err 94 on Cxxx(Null) and err 91 on Cxxx(Nothing).
Native cscript raises VBSE_ILLEGAL_NULL_USE (94) when Null is passed to a Cxxx
coercion builtin, and VBSE_OBJECT_VARIABLE_NOT_SET (91) for Nothing. Wine was
returning whatever VariantChangeType bubbled up (DISP_E_TYPEMISMATCH -> 13,
DISP_E_BADVARTYPE -> 458). Factor the checks into a single helper and run it
at the top of each Cxxx builtin.