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
2a5682d9
Commit
2a5682d9
authored
Nov 23, 2021
by
Daniel Lehman
Committed by
Alexandre Julliard
Nov 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Handle UNC path in UrlApplySchemeW.
Fixes loading XML from a UNC path. Signed-off-by:
Daniel Lehman
<
dlehman@esri.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ebc60f64
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
path.c
dlls/kernelbase/path.c
+1
-1
url.c
dlls/shlwapi/tests/url.c
+5
-0
No files found.
dlls/kernelbase/path.c
View file @
2a5682d9
...
...
@@ -4020,7 +4020,7 @@ HRESULT WINAPI UrlApplySchemeW(const WCHAR *url, WCHAR *out, DWORD *length, DWOR
if
(
flags
&
URL_APPLY_GUESSFILE
)
{
if
(
*
length
>
1
&&
':'
==
url
[
1
]
)
if
(
(
*
length
>
1
&&
':'
==
url
[
1
])
||
PathIsUNCW
(
url
)
)
{
res1
=
*
length
;
hr
=
url_create_from_path
(
url
,
out
,
&
res1
);
...
...
dlls/shlwapi/tests/url.c
View file @
2a5682d9
...
...
@@ -97,6 +97,11 @@ static const TEST_URL_APPLY TEST_APPLY[] = {
{
"u:
\\
windows"
,
URL_APPLY_DEFAULT
,
S_OK
,
17
,
"http://u:
\\
windows"
},
{
"file:///c:/windows"
,
URL_APPLY_GUESSFILE
,
S_FALSE
,
TEST_APPLY_MAX_LENGTH
,
untouchedA
},
{
"aa:
\\
windows"
,
URL_APPLY_GUESSFILE
,
S_FALSE
,
TEST_APPLY_MAX_LENGTH
,
untouchedA
},
{
"
\\\\
server
\\
share"
,
URL_APPLY_DEFAULT
,
S_OK
,
21
,
"http://
\\\\
server
\\
share"
},
{
"
\\\\
server
\\
share"
,
URL_APPLY_GUESSFILE
,
S_OK
,
19
,
"file://server/share"
},
{
"
\\\\
server
\\
share"
,
URL_APPLY_GUESSSCHEME
,
S_FALSE
,
TEST_APPLY_MAX_LENGTH
,
untouchedA
},
{
"file://server/share"
,
URL_APPLY_GUESSFILE
,
S_FALSE
,
TEST_APPLY_MAX_LENGTH
,
untouchedA
},
{
"file://server/share"
,
URL_APPLY_GUESSSCHEME
,
S_FALSE
,
TEST_APPLY_MAX_LENGTH
,
untouchedA
},
};
/* ################ */
...
...
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