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
9cbcbe8d
Commit
9cbcbe8d
authored
Feb 09, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 09, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Properly handle combining relative mk: URIs containing full internal path.
parent
ac8360b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
8 deletions
+21
-8
uri.c
dlls/urlmon/uri.c
+21
-8
No files found.
dlls/urlmon/uri.c
View file @
9cbcbe8d
...
...
@@ -6389,13 +6389,25 @@ static HRESULT merge_paths(parse_data *data, const WCHAR *base, DWORD base_len,
WCHAR
*
ptr
;
if
(
base_len
)
{
/* Find the characters that will be copied over from
* the base path.
*/
end
=
memrchrW
(
base
,
'/'
,
base_len
);
if
(
!
end
&&
data
->
scheme_type
==
URL_SCHEME_FILE
)
/* Try looking for a '\\'. */
end
=
memrchrW
(
base
,
'\\'
,
base_len
);
if
(
data
->
scheme_type
==
URL_SCHEME_MK
&&
*
relative
==
'/'
)
{
/* Find '::' segment */
for
(
end
=
base
;
end
<
base
+
base_len
-
1
;
end
++
)
{
if
(
end
[
0
]
==
':'
&&
end
[
1
]
==
':'
)
{
end
++
;
break
;
}
}
/* If not found, try finding the end of @xxx: */
if
(
end
==
base
+
base_len
-
1
)
end
=
*
base
==
'@'
?
memchr
(
base
,
':'
,
base_len
)
:
NULL
;
}
else
{
/* Find the characters that will be copied over from the base path. */
end
=
memrchrW
(
base
,
'/'
,
base_len
);
if
(
!
end
&&
data
->
scheme_type
==
URL_SCHEME_FILE
)
/* Try looking for a '\\'. */
end
=
memrchrW
(
base
,
'\\'
,
base_len
);
}
}
if
(
end
)
{
...
...
@@ -6420,6 +6432,7 @@ static HRESULT merge_paths(parse_data *data, const WCHAR *base, DWORD base_len,
*
ptr
=
'\0'
;
*
result_len
=
(
ptr
-*
result
);
TRACE
(
"ret %s
\n
"
,
debugstr_wn
(
*
result
,
*
result_len
));
return
S_OK
;
}
...
...
@@ -6541,7 +6554,7 @@ static HRESULT combine_uri(Uri *base, Uri *relative, DWORD flags, IUri **result,
* relative path doesn't begin with a '/' then the base path and relative
* path are merged together.
*/
if
(
relative
->
path_len
&&
*
(
relative
->
canon_uri
+
relative
->
path_start
)
==
'/'
)
{
if
(
relative
->
path_len
&&
*
(
relative
->
canon_uri
+
relative
->
path_start
)
==
'/'
&&
data
.
scheme_type
!=
URL_SCHEME_MK
)
{
WCHAR
*
tmp
=
NULL
;
BOOL
copy_drive_path
=
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