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
d484650b
Commit
d484650b
authored
Sep 27, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Implement ParseName() using shellfolder API.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2406d6cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
+7
-13
shelldispatch.c
dlls/shell32/shelldispatch.c
+7
-13
No files found.
dlls/shell32/shelldispatch.c
View file @
d484650b
...
...
@@ -1502,31 +1502,25 @@ static HRESULT WINAPI FolderImpl_Items(Folder3 *iface, FolderItems **ppid)
static
HRESULT
WINAPI
FolderImpl_ParseName
(
Folder3
*
iface
,
BSTR
name
,
FolderItem
**
item
)
{
FolderImpl
*
This
=
impl_from_Folder
(
iface
);
FolderItem
*
self
;
BSTR
str
;
WCHAR
pathW
[
MAX_PATH
];
LPITEMIDLIST
pidl
;
STRRET
strret
;
HRESULT
hr
;
TRACE
(
"(%p,%s,%p)
\n
"
,
iface
,
debugstr_w
(
name
),
item
);
*
item
=
NULL
;
if
(
!
name
||
!
name
[
0
]
)
if
(
FAILED
(
IShellFolder2_ParseDisplayName
(
This
->
folder
,
NULL
,
NULL
,
name
,
NULL
,
&
pidl
,
NULL
))
)
return
S_FALSE
;
hr
=
Folder3_get_Self
(
iface
,
&
self
);
hr
=
IShellFolder2_GetDisplayNameOf
(
This
->
folder
,
pidl
,
SHGDN_FORPARSING
,
&
strret
);
ILFree
(
pidl
);
if
(
FAILED
(
hr
))
return
hr
;
hr
=
FolderItem_get_Path
(
self
,
&
str
);
FolderItem_Release
(
self
);
PathCombineW
(
pathW
,
str
,
name
);
SysFreeString
(
str
);
if
(
!
PathFileExistsW
(
pathW
))
return
S_FALSE
;
StrRetToBufW
(
&
strret
,
NULL
,
pathW
,
sizeof
(
pathW
)
/
sizeof
(
*
pathW
));
return
FolderItem_Constructor
(
This
,
pathW
,
item
);
}
...
...
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