Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
8dfbcd49
Commit
8dfbcd49
authored
Jan 17, 2014
by
Sebastian Lackner
Committed by
Vitaly Lipatov
Jul 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: UrlCombineW workaround for relative paths
parent
81cf4abb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
path.c
dlls/kernelbase/path.c
+4
-1
url.c
dlls/shlwapi/tests/url.c
+2
-0
No files found.
dlls/kernelbase/path.c
View file @
8dfbcd49
...
...
@@ -4873,7 +4873,10 @@ HRESULT WINAPI UrlCombineW(const WCHAR *baseW, const WCHAR *relativeW, WCHAR *co
work
=
preliminary
+
base
.
cchProtocol
+
1
+
base
.
cchSuffix
-
1
;
if
(
*
work
++
!=
'/'
)
*
(
work
++
)
=
'/'
;
lstrcpyW
(
work
,
relative
.
pszSuffix
);
if
(
relative
.
pszSuffix
[
0
]
==
'.'
&&
relative
.
pszSuffix
[
1
]
==
0
)
*
work
=
0
;
else
lstrcpyW
(
work
,
relative
.
pszSuffix
);
break
;
default:
...
...
dlls/shlwapi/tests/url.c
View file @
8dfbcd49
...
...
@@ -348,6 +348,8 @@ static const TEST_URL_COMBINE TEST_COMBINE[] = {
{
"http://www.winehq.org/test14#aaa/bbb#ccc"
,
"#"
,
0
,
"http://www.winehq.org/test14#"
},
{
"http://www.winehq.org/tests/?query=x/y/z"
,
"tests15"
,
0
,
"http://www.winehq.org/tests/tests15"
},
{
"http://www.winehq.org/tests/?query=x/y/z#example"
,
"tests16"
,
0
,
"http://www.winehq.org/tests/tests16"
},
{
"http://www.winehq.org/tests17"
,
"."
,
0
,
"http://www.winehq.org/"
},
{
"http://www.winehq.org/tests18/test"
,
"."
,
0
,
"http://www.winehq.org/tests18/"
},
{
"file:///C:
\\
dir
\\
file.txt"
,
"test.txt"
,
0
,
"file:///C:/dir/test.txt"
},
{
"file:///C:
\\
dir
\\
file.txt#hash
\\
hash"
,
"test.txt"
,
0
,
"file:///C:/dir/file.txt#hash/test.txt"
},
{
"file:///C:
\\
dir
\\
file.html#hash
\\
hash"
,
"test.html"
,
0
,
"file:///C:/dir/test.html"
},
...
...
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