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
acfc1175
Commit
acfc1175
authored
Aug 23, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Aug 23, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Fix UrlCombineW for absolute URLs without slashes.
parent
fba87b11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
path.c
dlls/shlwapi/tests/path.c
+4
-0
url.c
dlls/shlwapi/url.c
+3
-2
No files found.
dlls/shlwapi/tests/path.c
View file @
acfc1175
...
...
@@ -205,6 +205,10 @@ const TEST_URL_COMBINE TEST_COMBINE[] = {
{
"xxx:@MSITStore:file.chm/file.html"
,
"dir/file"
,
0
,
S_OK
,
"xxx:dir/file"
},
{
"mk:@MSITStore:file.chm::/file.html"
,
"/dir/file"
,
0
,
S_OK
,
"mk:@MSITStore:file.chm::/dir/file"
},
{
"mk:@MSITStore:file.chm::/file.html"
,
"mk:@MSITStore:file.chm::/dir/file"
,
0
,
S_OK
,
"mk:@MSITStore:file.chm::/dir/file"
},
{
"foo:today"
,
"foo:calendar"
,
0
,
S_OK
,
"foo:calendar"
},
{
"foo:today"
,
"bar:calendar"
,
0
,
S_OK
,
"bar:calendar"
},
{
"foo:/today"
,
"foo:calendar"
,
0
,
S_OK
,
"foo:/calendar"
},
{
"foo:/today/"
,
"foo:calendar"
,
0
,
S_OK
,
"foo:/today/calendar"
},
};
struct
{
...
...
dlls/shlwapi/url.c
View file @
acfc1175
...
...
@@ -736,8 +736,9 @@ HRESULT WINAPI UrlCombineW(LPCWSTR pszBase, LPCWSTR pszRelative,
process_case
=
4
;
break
;
}
/* case where scheme is followed by document path */
process_case
=
5
;
/* replace either just location if base's location starts with a
* slash or otherwise everything */
process_case
=
(
*
base
.
pszSuffix
==
'/'
)
?
5
:
1
;
break
;
}
if
((
*
relative
.
pszSuffix
==
'/'
)
&&
(
*
(
relative
.
pszSuffix
+
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