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
961627d3
Commit
961627d3
authored
Feb 10, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Fix handling mk URLs.
parent
557e4d30
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
path.c
dlls/shlwapi/tests/path.c
+4
-1
url.c
dlls/shlwapi/url.c
+16
-0
No files found.
dlls/shlwapi/tests/path.c
View file @
961627d3
...
...
@@ -198,7 +198,10 @@ const TEST_URL_COMBINE TEST_COMBINE[] = {
{
"file:///C:
\\
dir
\\
file.txt"
,
"test.txt"
,
0
,
S_OK
,
"file:///C:/dir/test.txt"
},
{
"http://www.winehq.org/test/"
,
"test%20file.txt"
,
0
,
S_OK
,
"http://www.winehq.org/test/test%20file.txt"
},
{
"http://www.winehq.org/test/"
,
"test%20file.txt"
,
URL_FILE_USE_PATHURL
,
S_OK
,
"http://www.winehq.org/test/test%20file.txt"
},
{
"http://www.winehq.org%2ftest/"
,
"test%20file.txt"
,
URL_FILE_USE_PATHURL
,
S_OK
,
"http://www.winehq.org%2ftest/test%20file.txt"
}
{
"http://www.winehq.org%2ftest/"
,
"test%20file.txt"
,
URL_FILE_USE_PATHURL
,
S_OK
,
"http://www.winehq.org%2ftest/test%20file.txt"
},
{
"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"
},
};
struct
{
...
...
dlls/shlwapi/url.c
View file @
961627d3
...
...
@@ -629,6 +629,22 @@ HRESULT WINAPI UrlCombineW(LPCWSTR pszBase, LPCWSTR pszRelative,
process_case
=
1
;
}
else
do
{
/* mk is a special case */
if
(
base
.
nScheme
==
URL_SCHEME_MK
)
{
static
const
WCHAR
wsz
[]
=
{
':'
,
':'
,
0
};
WCHAR
*
ptr
=
strstrW
(
base
.
pszSuffix
,
wsz
);
if
(
ptr
)
{
int
delta
;
ptr
+=
2
;
delta
=
ptr
-
base
.
pszSuffix
;
base
.
cchProtocol
+=
delta
;
base
.
pszSuffix
+=
delta
;
base
.
cchSuffix
-=
delta
;
}
}
/* get size of location field (if it exists) */
work
=
(
LPWSTR
)
base
.
pszSuffix
;
sizeloc
=
0
;
...
...
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