[Git][wine/wine][master] vbscript: Support element access on public array properties of class instances.
Alexandre Julliard pushed to branch master at wine / wine Commits: 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. - - - - - 2 changed files: - dlls/vbscript/tests/lang.vbs - dlls/vbscript/vbdisp.c View it on GitLab: https://gitlab.winehq.org/wine/wine/-/commit/1428a22448b2796994f3fbe7ed91354... -- View it on GitLab: https://gitlab.winehq.org/wine/wine/-/commit/1428a22448b2796994f3fbe7ed91354... You're receiving this email because of your account on gitlab.winehq.org. Manage all notifications: https://gitlab.winehq.org/-/profile/notifications | Help: https://gitlab.winehq.org/help
participants (1)
-
Alexandre Julliard (@julliard)