mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
vbscript: Fixed local variable count calculation.
This commit is contained in:
parent
a65ef29151
commit
851856af67
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue