3c7e8e6b
by Francis De Brabandere at 2026-04-20T20:39:17+02:00
vbscript: Convert VT_DISPATCH arguments to string in Eval/Execute/ExecuteGlobal.
For VT_DISPATCH arguments, call the object's default property
(DISPID_VALUE) to get a string value instead of returning the object
via VariantCopy (Eval) or returning type mismatch (Execute/
ExecuteGlobal). This matches Windows behavior where passing a
dispatch object without a default property fails with error 438,
and objects with a default property have it invoked to obtain
the string to evaluate or execute.