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
91ae5ffe
Commit
91ae5ffe
authored
Feb 16, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Allow schemes to contain uppercase characters in UrlGetPart().
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6cb12645
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
path.c
dlls/kernelbase/path.c
+13
-2
url.c
dlls/shlwapi/tests/url.c
+1
-1
No files found.
dlls/kernelbase/path.c
View file @
91ae5ffe
...
...
@@ -4155,7 +4155,7 @@ HRESULT WINAPI UrlGetPartA(const char *url, char *out, DWORD *out_len, DWORD par
static
const
WCHAR
*
parse_scheme
(
const
WCHAR
*
p
)
{
while
(
(
*
p
>=
'a'
&&
*
p
<=
'z'
)
||
(
*
p
>=
'0'
&&
*
p
<=
'9'
)
||
*
p
==
'+'
||
*
p
==
'-'
||
*
p
==
'.'
)
while
(
isalnum
(
*
p
)
||
*
p
==
'+'
||
*
p
==
'-'
||
*
p
==
'.'
)
++
p
;
return
p
;
}
...
...
@@ -4384,7 +4384,18 @@ HRESULT WINAPI UrlGetPartW(const WCHAR *url, WCHAR *out, DWORD *out_len, DWORD p
*
out_len
=
size
+
1
;
return
E_POINTER
;
}
memcpy
(
out
,
addr
,
size
*
sizeof
(
WCHAR
));
if
(
part
==
URL_PART_SCHEME
)
{
unsigned
int
i
;
for
(
i
=
0
;
i
<
size
;
++
i
)
out
[
i
]
=
tolower
(
addr
[
i
]
);
}
else
{
memcpy
(
out
,
addr
,
size
*
sizeof
(
WCHAR
)
);
}
out
[
size
]
=
0
;
*
out_len
=
size
;
}
...
...
dlls/shlwapi/tests/url.c
View file @
91ae5ffe
...
...
@@ -709,7 +709,7 @@ static void test_UrlGetPart(void)
{
"file://c:
\\
index.htm"
,
URL_PART_HOSTNAME
,
URL_PARTFLAG_KEEPSCHEME
,
S_FALSE
,
""
},
{
"file:some text"
,
URL_PART_HOSTNAME
,
0
,
S_FALSE
,
""
},
{
"index.htm"
,
URL_PART_HOSTNAME
,
0
,
E_FAIL
},
{
"sChEmE-.+:"
,
URL_PART_SCHEME
,
0
,
S_OK
,
"scheme-.+"
,
.
todo_hr
=
TRUE
},
{
"sChEmE-.+:"
,
URL_PART_SCHEME
,
0
,
S_OK
,
"scheme-.+"
},
{
"scheme_:"
,
URL_PART_SCHEME
,
0
,
S_FALSE
,
""
},
{
"scheme :"
,
URL_PART_SCHEME
,
0
,
S_FALSE
,
""
},
{
"sch eme:"
,
URL_PART_SCHEME
,
0
,
S_FALSE
,
""
},
...
...
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