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
df96b729
Commit
df96b729
authored
Sep 02, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Sep 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Throw exception on error in JSGlobal_encodeURIComponent.
parent
65a7f475
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
global.c
dlls/jscript/global.c
+1
-2
api.js
dlls/jscript/tests/api.js
+1
-0
No files found.
dlls/jscript/global.c
View file @
df96b729
...
...
@@ -899,8 +899,7 @@ static HRESULT JSGlobal_encodeURIComponent(script_ctx_t *ctx, vdisp_t *jsthis, W
size
=
WideCharToMultiByte
(
CP_UTF8
,
0
,
ptr
,
1
,
NULL
,
0
,
NULL
,
NULL
);
if
(
!
size
)
{
SysFreeString
(
str
);
FIXME
(
"throw Error
\n
"
);
return
E_FAIL
;
return
throw_uri_error
(
ctx
,
ei
,
JS_E_INVALID_URI_CHAR
,
NULL
);
}
len
+=
size
*
3
;
}
...
...
dlls/jscript/tests/api.js
View file @
df96b729
...
...
@@ -2053,6 +2053,7 @@ testException(function() {RegExp(/a/, "g");}, "E_REGEXP_SYNTAX_ERROR");
// URIError tests
testException
(
function
()
{
encodeURI
(
'
\
udcaa'
);},
"E_URI_INVALID_CHAR"
);
testException
(
function
()
{
encodeURIComponent
(
'
\
udcaa'
);},
"E_URI_INVALID_CHAR"
);
function
testThisExcept
(
func
,
e
)
{
testException
(
function
()
{
func
.
call
(
new
Object
())},
e
);
...
...
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