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
851856af
Commit
851856af
authored
Oct 24, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Fixed local variable count calculation.
parent
a65ef291
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
compile.c
dlls/vbscript/compile.c
+1
-1
lang.vbs
dlls/vbscript/tests/lang.vbs
+1
-0
No files found.
dlls/vbscript/compile.c
View file @
851856af
...
...
@@ -746,6 +746,7 @@ static HRESULT compile_dim_statement(compile_ctx_t *ctx, dim_statement_t *stat)
return
E_FAIL
;
}
ctx
->
func
->
var_cnt
++
;
if
(
!
dim_decl
->
next
)
break
;
dim_decl
=
dim_decl
->
next
;
...
...
@@ -753,7 +754,6 @@ static HRESULT compile_dim_statement(compile_ctx_t *ctx, dim_statement_t *stat)
dim_decl
->
next
=
ctx
->
dim_decls
;
ctx
->
dim_decls
=
stat
->
dim_decls
;
ctx
->
func
->
var_cnt
++
;
return
S_OK
;
}
...
...
dlls/vbscript/tests/lang.vbs
View file @
851856af
...
...
@@ -470,6 +470,7 @@ Sub TestSubLocalVal
x
=
false
Call
ok
(
not
x
,
"local x is not false?"
)
Dim
x
Dim
a
,
b
,
c
End
Sub
x
=
true
...
...
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