[Git][wine/wine][master] 2 commits: vbscript/tests: Add tests for ExecuteGlobal re-Dim of an existing array.
Alexandre Julliard pushed to branch master at wine / wine Commits: f8cc1383 by Francis De Brabandere at 2026-05-18T21:58:30+02:00 vbscript/tests: Add tests for ExecuteGlobal re-Dim of an existing array. ExecuteGlobal compiles a fresh script that shares the host's script-global scope. If a name was previously Dim'd as an array (dynamic or fixed), a subsequent ExecuteGlobal that Dim's the same name raises err 13 on native. Re-Dim'ing a previously scalar Dim is allowed. Mark the failing cases todo_wine for the upcoming interp_dim fix. - - - - - d83e7764 by Francis De Brabandere at 2026-05-18T21:58:30+02:00 vbscript: Reject re-Dim of an existing global array with err 13. A separate ExecuteGlobal can re-encounter a name that was already Dim'd as an array (dynamic or fixed) in an earlier compile unit. Native raises err 13 (Type mismatch) for this case. Wine silently accepted the dynamic form and leaked E_FAIL as a raw HRESULT for the fixed form. Check for an existing array variant at the start of interp_dim's FUNC_GLOBAL branch and raise VBSE_TYPE_MISMATCH consistently. Re-Dim'ing a previously scalar Dim continues to work. - - - - - 2 changed files: - dlls/vbscript/interp.c - dlls/vbscript/tests/lang.vbs View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/cb3de0f05be4d56eba63d57a0198a3... -- View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/cb3de0f05be4d56eba63d57a0198a3... 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)