[Git][wine/wine][master] 2 commits: vbscript/tests: Add tests for ReDim on class member arrays.
Alexandre Julliard pushed to branch master at wine / wine Commits: 8b325394 by Francis De Brabandere at 2026-05-19T11:24:52+02:00 vbscript/tests: Add tests for ReDim on class member arrays. A fixed-size class member array (Private mArr(N) or Public mArr(N)) is created with FADF_FIXEDSIZE on native, so attempting to ReDim it from a method body raises err 10 at runtime. Dynamic (mArr()) and scalar (mArr) members can be ReDim'd freely. These cases pass the parser but reach interp_redim; mark the fixed-size ones todo_wine for the upcoming fix. - - - - - 9adea42f by Francis De Brabandere at 2026-05-19T11:24:54+02:00 vbscript: Mark class member fixed-size arrays as FADF_FIXEDSIZE. When a class member is declared with explicit bounds (Private mArr(N) or Public mArr(N)) the SAFEARRAY created at instance construction was missing FADF_FIXEDSIZE, so interp_redim's fixed-size guard silently accepted a later ReDim from a method body. Set the flag (and FADF_STATIC) to match interp_dim's handling of local fixed-size arrays, so ReDim raises err 10 like native. - - - - - 2 changed files: - dlls/vbscript/tests/lang.vbs - dlls/vbscript/vbdisp.c View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/8118b9cd2262f4916aff4768304bb6... -- View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/8118b9cd2262f4916aff4768304bb6... 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)