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
3559c261
Commit
3559c261
authored
Sep 21, 2017
by
Zebediah Figura
Committed by
Alexandre Julliard
Sep 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: URL schemes may contain hyphen, plus, or period.
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
52e45d8f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
url.c
dlls/shlwapi/tests/url.c
+1
-0
url.c
dlls/shlwapi/url.c
+2
-2
No files found.
dlls/shlwapi/tests/url.c
View file @
3559c261
...
...
@@ -1483,6 +1483,7 @@ static const struct parse_url_test_t {
{
"ab-://www.winehq.org/"
,
S_OK
,
3
,
URL_SCHEME_UNKNOWN
},
{
" http://www.winehq.org/"
,
URL_E_INVALID_SYNTAX
},
{
"HTTP://www.winehq.org/"
,
S_OK
,
4
,
URL_SCHEME_HTTP
},
{
"a+-.://www.winehq.org/"
,
S_OK
,
4
,
URL_SCHEME_UNKNOWN
},
};
static
void
test_ParseURL
(
void
)
...
...
dlls/shlwapi/url.c
View file @
3559c261
...
...
@@ -169,7 +169,7 @@ HRESULT WINAPI ParseURLA(LPCSTR x, PARSEDURLA *y)
if
(
y
->
cbSize
!=
sizeof
(
*
y
))
return
E_INVALIDARG
;
while
(
*
ptr
&&
(
isalnum
(
*
ptr
)
||
*
ptr
==
'-'
))
while
(
*
ptr
&&
(
isalnum
(
*
ptr
)
||
*
ptr
==
'-'
||
*
ptr
==
'+'
||
*
ptr
==
'.'
))
ptr
++
;
if
(
*
ptr
!=
':'
||
ptr
<=
x
+
1
)
{
...
...
@@ -203,7 +203,7 @@ HRESULT WINAPI ParseURLW(LPCWSTR x, PARSEDURLW *y)
if
(
y
->
cbSize
!=
sizeof
(
*
y
))
return
E_INVALIDARG
;
while
(
*
ptr
&&
(
isalnumW
(
*
ptr
)
||
*
ptr
==
'-'
))
while
(
*
ptr
&&
(
isalnumW
(
*
ptr
)
||
*
ptr
==
'-'
||
*
ptr
==
'+'
||
*
ptr
==
'.'
))
ptr
++
;
if
(
*
ptr
!=
':'
||
ptr
<=
x
+
1
)
{
...
...
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