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
c0864294
Commit
c0864294
authored
Jul 09, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Fixed handling mk protocol URLs in UrlCombineW.
parent
a4ea1c60
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
21 deletions
+23
-21
url.c
dlls/shlwapi/tests/url.c
+2
-0
url.c
dlls/shlwapi/url.c
+21
-21
No files found.
dlls/shlwapi/tests/url.c
View file @
c0864294
...
...
@@ -234,6 +234,8 @@ static const TEST_URL_COMBINE TEST_COMBINE[] = {
{
"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"
},
{
"mk:@MSITStore:dir/test.chm::dir/index.html"
,
"image.jpg"
,
0
,
S_OK
,
"mk:@MSITStore:dir/test.chm::dir/image.jpg"
},
{
"mk:@MSITStore:dir/test.chm::dir/dir2/index.html"
,
"../image.jpg"
,
0
,
S_OK
,
"mk:@MSITStore:dir/test.chm::dir/image.jpg"
}
};
/* ################ */
...
...
dlls/shlwapi/url.c
View file @
c0864294
...
...
@@ -659,29 +659,29 @@ HRESULT WINAPI UrlCombineW(LPCWSTR pszBase, LPCWSTR pszRelative,
base
.
pszSuffix
+=
delta
;
base
.
cchSuffix
-=
delta
;
}
}
/* get size of location field (if it exists) */
work
=
(
LPWSTR
)
base
.
pszSuffix
;
sizeloc
=
0
;
if
(
*
work
++
==
'/'
)
{
}
else
{
/* get size of location field (if it exists) */
work
=
(
LPWSTR
)
base
.
pszSuffix
;
sizeloc
=
0
;
if
(
*
work
++
==
'/'
)
{
/* At this point have start of location and
* it ends at next '/' or end of string.
*/
while
(
*
work
&&
(
*
work
!=
'/'
))
work
++
;
sizeloc
=
(
DWORD
)(
work
-
base
.
pszSuffix
);
}
}
if
(
*
work
++
==
'/'
)
{
/* At this point have start of location and
* it ends at next '/' or end of string.
*/
while
(
*
work
&&
(
*
work
!=
'/'
))
work
++
;
sizeloc
=
(
DWORD
)(
work
-
base
.
pszSuffix
);
}
}
}
/* Change .sizep2 to not have the last leaf in it,
* Note: we need to start after the location (if it exists)
*/
/* Change .sizep2 to not have the last leaf in it,
* Note: we need to start after the location (if it exists)
*/
work
=
strrchrW
((
base
.
pszSuffix
+
sizeloc
),
'/'
);
if
(
work
)
{
len
=
(
DWORD
)(
work
-
base
.
pszSuffix
+
1
);
base
.
cchSuffix
=
len
;
}
if
(
work
)
{
len
=
(
DWORD
)(
work
-
base
.
pszSuffix
+
1
);
base
.
cchSuffix
=
len
;
}
/*
* At this point:
...
...
@@ -723,7 +723,7 @@ HRESULT WINAPI UrlCombineW(LPCWSTR pszBase, LPCWSTR pszRelative,
process_case
=
4
;
break
;
}
process_case
=
(
*
base
.
pszSuffix
==
'/'
)
?
5
:
3
;
process_case
=
(
*
base
.
pszSuffix
==
'/'
||
base
.
nScheme
==
URL_SCHEME_MK
)
?
5
:
3
;
break
;
}
...
...
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