Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5d31c1e8
Commit
5d31c1e8
authored
Apr 23, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 23, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Return proper error on invalid argument in Chr.
parent
3ca67bc8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
global.c
dlls/vbscript/global.c
+2
-2
api.vbs
dlls/vbscript/tests/api.vbs
+14
-0
No files found.
dlls/vbscript/global.c
View file @
5d31c1e8
...
...
@@ -1141,8 +1141,8 @@ static HRESULT Global_Chr(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIA
return
hres
;
if
(
c
<
0
||
c
>=
0x100
)
{
FIXME
(
"invalid arg
\n
"
);
return
E_FAIL
;
WARN
(
"invalid arg %d
\n
"
,
c
);
return
MAKE_VBSERROR
(
VBSE_ILLEGAL_FUNC_CALL
)
;
}
if
(
res
)
{
...
...
dlls/vbscript/tests/api.vbs
View file @
5d31c1e8
...
...
@@ -137,6 +137,20 @@ Call ok(Chr(0) <> "", "Chr(0) = """"")
Call
ok
(
Chr
(
120.5
)
=
"x"
,
"Chr(120.5) = "
&
Chr
(
120.5
))
Call
ok
(
Chr
(
119.5
)
=
"x"
,
"Chr(119.5) = "
&
Chr
(
119.5
))
sub
testChrError
on
error
resume
next
call
Err
.
clear
()
call
Chr
(
-
1
)
call
ok
(
Err
.
number
=
5
,
"Err.number = "
&
Err
.
number
)
call
Err
.
clear
()
call
Chr
(
256
)
call
ok
(
Err
.
number
=
5
,
"Err.number = "
&
Err
.
number
)
end
sub
call
testChrError
Call
ok
(
isObject
(
new
EmptyClass
),
"isObject(new EmptyClass) is not true?"
)
Set
x
=
new
EmptyClass
Call
ok
(
isObject
(
x
),
"isObject(x) is not 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