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
da31fc06
Commit
da31fc06
authored
Jun 28, 2010
by
Andrew Eikum
Committed by
Alexandre Julliard
Jun 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Use ParseURL to detect URLs.
parent
ff08a686
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
shfldr_desktop.c
dlls/shell32/shfldr_desktop.c
+4
-6
No files found.
dlls/shell32/shfldr_desktop.c
View file @
da31fc06
...
...
@@ -152,6 +152,7 @@ static HRESULT WINAPI ISF_Desktop_fnParseDisplayName (IShellFolder2 * iface,
WCHAR
szElement
[
MAX_PATH
];
LPCWSTR
szNext
=
NULL
;
LPITEMIDLIST
pidlTemp
=
NULL
;
PARSEDURLW
urldata
;
HRESULT
hr
=
S_OK
;
CLSID
clsid
;
...
...
@@ -167,6 +168,8 @@ static HRESULT WINAPI ISF_Desktop_fnParseDisplayName (IShellFolder2 * iface,
if
(
pchEaten
)
*
pchEaten
=
0
;
/* strange but like the original */
urldata
.
cbSize
=
sizeof
(
urldata
);
if
(
lpszDisplayName
[
0
]
==
':'
&&
lpszDisplayName
[
1
]
==
':'
)
{
szNext
=
GetNextElementW
(
lpszDisplayName
,
szElement
,
MAX_PATH
);
...
...
@@ -193,13 +196,8 @@ static HRESULT WINAPI ISF_Desktop_fnParseDisplayName (IShellFolder2 * iface,
*
ppidl
=
pidlTemp
;
return
S_OK
;
}
else
if
(
strchrW
(
lpszDisplayName
,
':'
))
else
if
(
SUCCEEDED
(
ParseURLW
(
lpszDisplayName
,
&
urldata
)
))
{
PARSEDURLW
urldata
;
urldata
.
cbSize
=
sizeof
(
urldata
);
ParseURLW
(
lpszDisplayName
,
&
urldata
);
if
(
urldata
.
nScheme
==
URL_SCHEME_SHELL
)
/* handle shell: urls */
{
TRACE
(
"-- shell url: %s
\n
"
,
debugstr_w
(
urldata
.
pszSuffix
));
...
...
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