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
876dc3d8
Commit
876dc3d8
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: Simplify Verbs() method.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c14c2ebf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
shelldispatch.c
dlls/shell32/shelldispatch.c
+4
-11
No files found.
dlls/shell32/shelldispatch.c
View file @
876dc3d8
...
...
@@ -577,6 +577,8 @@ static HRESULT FolderItemVerbs_Constructor(BSTR path, FolderItemVerbs **verbs)
LPITEMIDLIST
pidl
;
HRESULT
hr
;
*
verbs
=
NULL
;
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
FolderItemVerbsImpl
));
if
(
!
This
)
return
E_OUTOFMEMORY
;
...
...
@@ -865,23 +867,14 @@ static HRESULT WINAPI FolderItemImpl_get_Type(FolderItem2 *iface, BSTR *pbs)
static
HRESULT
WINAPI
FolderItemImpl_Verbs
(
FolderItem2
*
iface
,
FolderItemVerbs
**
verbs
)
{
HRESULT
hr
;
BSTR
path
;
FolderItemImpl
*
This
=
impl_from_FolderItem
(
iface
);
TRACE
(
"(%p, %p)
\n
"
,
iface
,
verbs
);
if
(
!
verbs
)
return
E_INVALIDARG
;
*
verbs
=
NULL
;
hr
=
FolderItem2_get_Path
(
iface
,
&
path
);
if
(
FAILED
(
hr
))
return
hr
;
hr
=
FolderItemVerbs_Constructor
(
path
,
verbs
);
SysFreeString
(
path
);
return
hr
;
return
FolderItemVerbs_Constructor
(
This
->
path
?
This
->
path
:
This
->
folder
->
path
,
verbs
);
}
static
HRESULT
WINAPI
FolderItemImpl_InvokeVerb
(
FolderItem2
*
iface
,
...
...
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