475919b9
by Francis De Brabandere at 2026-05-18T21:58:30+02:00
vbscript: Coerce BSTR operands of And/Or/Imp to number-or-Boolean.
Native VarXor already converts a BSTR operand to VT_I4 when it parses as a
number, falling back to VT_BOOL otherwise; VarAnd, VarOr and VarImp do not.
That left expressions like ""1"" And ""2"" producing Boolean[True] in Wine
instead of native's Long[0]. Apply the same coercion in interp_and / interp_or
/ interp_imp before calling oleaut32 so the bitwise result type matches.