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
32fda211
Commit
32fda211
authored
Jan 09, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Jan 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Check an argument to UrlEscapeA.
parent
0da7c8f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
url.c
dlls/shlwapi/tests/url.c
+5
-0
url.c
dlls/shlwapi/url.c
+3
-0
No files found.
dlls/shlwapi/tests/url.c
View file @
32fda211
...
...
@@ -480,6 +480,11 @@ static void test_UrlEscape(void)
}
size
=
1
;
ret
=
UrlEscapeA
(
"/woningplan/woonkamer basis.swf"
,
empty_string
,
NULL
,
URL_ESCAPE_SPACES_ONLY
);
ok
(
ret
==
E_INVALIDARG
,
"got %x, expected %x
\n
"
,
ret
,
E_INVALIDARG
);
ok
(
size
==
1
,
"got %d, expected %d
\n
"
,
size
,
1
);
size
=
1
;
ret
=
UrlEscapeA
(
"/woningplan/woonkamer basis.swf"
,
empty_string
,
&
size
,
URL_ESCAPE_SPACES_ONLY
);
todo_wine
{
ok
(
ret
==
E_POINTER
,
"got %x, expected %x
\n
"
,
ret
,
E_POINTER
);
...
...
dlls/shlwapi/url.c
View file @
32fda211
...
...
@@ -843,6 +843,9 @@ HRESULT WINAPI UrlEscapeA(
HRESULT
ret
;
DWORD
lenW
=
sizeof
(
bufW
)
/
sizeof
(
WCHAR
),
lenA
;
if
(
!
pcchEscaped
)
return
E_INVALIDARG
;
if
(
!
RtlCreateUnicodeStringFromAsciiz
(
&
urlW
,
pszUrl
))
return
E_INVALIDARG
;
if
((
ret
=
UrlEscapeW
(
urlW
.
Buffer
,
escapedW
,
&
lenW
,
dwFlags
))
==
E_POINTER
)
{
...
...
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