1428a224
by Francis De Brabandere at 2026-05-01T19:34:03+02:00
vbscript: Support element access on public array properties of class instances.
On Windows, public array properties declared in a class (e.g.
"Public arr(3)") can be accessed element-wise from outside the class
using obj.arr(i) for both reading and writing. Wine failed to handle
this because invoke_variant_prop() used V_ARRAY() which does not
work for VT_ARRAY|VT_BYREF|VT_VARIANT arrays, and the property put
path did not support indexed arguments at all.
Fix both by adding a helper to extract the SAFEARRAY from either
BYREF or direct array variants, and implementing indexed array
element writes in the property put path.