Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
9e3c806e
Commit
9e3c806e
authored
Oct 23, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Fix array reference handling in do_icall.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
410154e2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
interp.c
dlls/vbscript/interp.c
+2
-2
lang.vbs
dlls/vbscript/tests/lang.vbs
+1
-2
No files found.
dlls/vbscript/interp.c
View file @
9e3c806e
...
...
@@ -544,10 +544,10 @@ static HRESULT do_icall(exec_ctx_t *ctx, VARIANT *res)
switch
(
V_VT
(
v
))
{
case
VT_ARRAY
|
VT_BYREF
|
VT_VARIANT
:
array
=
*
V_ARRAYREF
(
ref
.
u
.
v
);
array
=
*
V_ARRAYREF
(
v
);
break
;
case
VT_ARRAY
|
VT_VARIANT
:
array
=
V_ARRAY
(
ref
.
u
.
v
);
array
=
V_ARRAY
(
v
);
break
;
case
VT_DISPATCH
:
vbstack_to_dp
(
ctx
,
arg_cnt
,
FALSE
,
&
dp
);
...
...
dlls/vbscript/tests/lang.vbs
View file @
9e3c806e
...
...
@@ -1300,8 +1300,7 @@ Call testarrarg(false, "VT_BOOL*")
Call
testarrarg
(
Empty
,
"VT_EMPTY*"
)
Sub
modifyarr
(
arr
)
'Following test crashes on wine
'Call ok(arr(0) = "not modified", "arr(0) = " & arr(0))
Call
ok
(
arr
(
0
)
=
"not modified"
,
"arr(0) = "
&
arr
(
0
))
arr
(
0
)
=
"modified"
End
Sub
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment