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
be583662
Commit
be583662
authored
Jun 13, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 16, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Reset error number on error mode change.
parent
05512948
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
interp.c
dlls/vbscript/interp.c
+1
-0
error.vbs
dlls/vbscript/tests/error.vbs
+14
-0
No files found.
dlls/vbscript/interp.c
View file @
be583662
...
...
@@ -1276,6 +1276,7 @@ static HRESULT interp_errmode(exec_ctx_t *ctx)
TRACE
(
"%d
\n
"
,
err_mode
);
ctx
->
resume_next
=
err_mode
;
ctx
->
script
->
err_number
=
S_OK
;
return
S_OK
;
}
...
...
dlls/vbscript/tests/error.vbs
View file @
be583662
...
...
@@ -284,6 +284,20 @@ x = 0
call
callTestOnError
(
false
)
call
ok
(
x
=
1
,
"x = "
&
x
)
sub
testOnErrorClear
()
on
error
resume
next
call
ok
(
Err
.
Number
=
0
,
"Err.Number = "
&
Err
.
Number
)
throwInt
(
E_TESTERROR
)
call
ok
(
Err
.
Number
=
E_TESTERROR
,
"Err.Number = "
&
Err
.
Number
)
on
error
goto
0
call
ok
(
Err
.
Number
=
0
,
"Err.Number = "
&
Err
.
Number
)
x
=
"ok"
end
sub
call
testOnErrorClear
()
call
ok
(
x
=
"ok"
,
"testOnErrorClear failed"
)
sub
testForEachError
()
on
error
resume
next
...
...
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