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
1e864366
Commit
1e864366
authored
Jan 08, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 09, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Remove redundant loop to count already known value.
parent
beb89fd1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
shv_item_cmenu.c
dlls/shell32/shv_item_cmenu.c
+9
-12
No files found.
dlls/shell32/shv_item_cmenu.c
View file @
1e864366
...
...
@@ -73,20 +73,17 @@ static inline ItemCmImpl *impl_from_IContextMenu2(IContextMenu2 *iface)
* ISvItemCm_CanRenameItems()
*/
static
BOOL
ISvItemCm_CanRenameItems
(
ItemCmImpl
*
This
)
{
UINT
i
;
DWORD
dwAttributes
;
{
DWORD
attr
;
TRACE
(
"(%p)->()
\n
"
,
This
);
TRACE
(
"(%p)
\n
"
,
This
);
if
(
This
->
apidl
)
{
for
(
i
=
0
;
i
<
This
->
cidl
;
i
++
){}
if
(
i
>
1
)
return
FALSE
;
/* can't rename more than one item at a time*/
dwAttributes
=
SFGAO_CANRENAME
;
IShellFolder_GetAttributesOf
(
This
->
menu
.
parent
,
1
,
(
LPCITEMIDLIST
*
)
This
->
apidl
,
&
dwAttributes
);
return
dwAttributes
&
SFGAO_CANRENAME
;
}
return
FALSE
;
/* can't rename more than one item at a time*/
if
(
!
This
->
apidl
||
This
->
cidl
>
1
)
return
FALSE
;
attr
=
SFGAO_CANRENAME
;
IShellFolder_GetAttributesOf
(
This
->
menu
.
parent
,
1
,
(
LPCITEMIDLIST
*
)
This
->
apidl
,
&
attr
);
return
attr
&
SFGAO_CANRENAME
;
}
/**************************************************************************
...
...
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