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
216f7146
Commit
216f7146
authored
Oct 28, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Ignore parentheses in call expression.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
273a3a58
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
compile.c
dlls/vbscript/compile.c
+2
-1
lang.vbs
dlls/vbscript/tests/lang.vbs
+14
-0
No files found.
dlls/vbscript/compile.c
View file @
216f7146
...
@@ -460,7 +460,8 @@ static HRESULT compile_call_expression(compile_ctx_t *ctx, call_expression_t *ex
...
@@ -460,7 +460,8 @@ static HRESULT compile_call_expression(compile_ctx_t *ctx, call_expression_t *ex
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
return
hres
;
return
hres
;
call
=
expr
->
call_expr
;
for
(
call
=
expr
->
call_expr
;
call
->
type
==
EXPR_BRACKETS
;
call
=
((
unary_expression_t
*
)
call
)
->
subexpr
);
if
(
call
->
type
==
EXPR_MEMBER
)
if
(
call
->
type
==
EXPR_MEMBER
)
return
compile_member_expression
(
ctx
,
(
member_expression_t
*
)
call
,
arg_cnt
,
ret_val
);
return
compile_member_expression
(
ctx
,
(
member_expression_t
*
)
call
,
arg_cnt
,
ret_val
);
...
...
dlls/vbscript/tests/lang.vbs
View file @
216f7146
...
@@ -1279,6 +1279,14 @@ x = Array(1)
...
@@ -1279,6 +1279,14 @@ x = Array(1)
seta0
(
x
)
seta0
(
x
)
todo_wine_ok
x
(
0
)
=
1
,
"x(0) = "
&
x
(
0
)
todo_wine_ok
x
(
0
)
=
1
,
"x(0) = "
&
x
(
0
)
x
=
Array
(
1
)
call
(((
seta0
)))
((
x
))
todo_wine_ok
x
(
0
)
=
1
,
"x(0) = "
&
x
(
0
)
x
=
Array
(
1
)
call
(((
seta0
)))
(
x
)
ok
x
(
0
)
=
2
,
"x(0) = "
&
x
(
0
)
x
=
Array
(
Array
(
3
))
x
=
Array
(
Array
(
3
))
seta0
x
(
0
)
seta0
x
(
0
)
call
ok
(
x
(
0
)(
0
)
=
2
,
"x(0)(0) = "
&
x
(
0
)(
0
))
call
ok
(
x
(
0
)(
0
)
=
2
,
"x(0)(0) = "
&
x
(
0
)(
0
))
...
@@ -1287,6 +1295,12 @@ x = Array(Array(3))
...
@@ -1287,6 +1295,12 @@ x = Array(Array(3))
seta0
(
x
(
0
))
seta0
(
x
(
0
))
call
todo_wine_ok
(
x
(
0
)(
0
)
=
3
,
"x(0)(0) = "
&
x
(
0
)(
0
))
call
todo_wine_ok
(
x
(
0
)(
0
)
=
3
,
"x(0)(0) = "
&
x
(
0
)(
0
))
y
=
(
seta0
)(
x
)
ok
y
=
1
,
"y = "
&
y
y
=
((
x
))(
0
)
ok
y
=
2
,
"y = "
&
y
sub
changearg
(
x
)
sub
changearg
(
x
)
x
=
2
x
=
2
end
sub
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