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
1c6af1f3
Commit
1c6af1f3
authored
May 15, 2011
by
Sergey Khodych
Committed by
Alexandre Julliard
May 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Use UrlApplyScheme with URL_APPLY_GUESSFILE for local paths in create_moniker.
parent
26541471
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
15 deletions
+6
-15
navigate.c
dlls/shdocvw/navigate.c
+6
-15
No files found.
dlls/shdocvw/navigate.c
View file @
1c6af1f3
...
...
@@ -578,21 +578,12 @@ static HRESULT create_moniker(LPCWSTR url, IMoniker **mon)
if
(
PathIsURLW
(
url
))
return
CreateURLMoniker
(
NULL
,
url
,
mon
);
if
(
url
[
1
]
==
':'
)
{
size
=
sizeof
(
new_url
);
hres
=
UrlCreateFromPathW
(
url
,
new_url
,
&
size
,
0
);
if
(
FAILED
(
hres
))
{
WARN
(
"UrlCreateFromPathW failed: %08x
\n
"
,
hres
);
return
hres
;
}
}
else
{
size
=
sizeof
(
new_url
)
/
sizeof
(
WCHAR
);
hres
=
UrlApplySchemeW
(
url
,
new_url
,
&
size
,
URL_APPLY_GUESSSCHEME
);
TRACE
(
"got %s
\n
"
,
debugstr_w
(
new_url
));
if
(
FAILED
(
hres
))
{
WARN
(
"UrlApplyScheme failed: %08x
\n
"
,
hres
);
return
hres
;
}
size
=
sizeof
(
new_url
)
/
sizeof
(
WCHAR
);
hres
=
UrlApplySchemeW
(
url
,
new_url
,
&
size
,
URL_APPLY_GUESSSCHEME
|
URL_APPLY_GUESSFILE
);
TRACE
(
"was %s got %s
\n
"
,
debugstr_w
(
url
),
debugstr_w
(
new_url
));
if
(
FAILED
(
hres
))
{
WARN
(
"UrlApplyScheme failed: %08x
\n
"
,
hres
);
return
hres
;
}
return
CreateURLMoniker
(
NULL
,
new_url
,
mon
);
...
...
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