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
91a8b481
Commit
91a8b481
authored
Apr 30, 2021
by
Damjan Jovanovic
Committed by
Alexandre Julliard
Apr 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: The menu wIDs in hmenu were rebased by idCmdFirst.
Signed-off-by:
Damjan Jovanovic
<
damjan.jov@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7af66935
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
shlview_cmenu.c
dlls/shell32/shlview_cmenu.c
+4
-4
No files found.
dlls/shell32/shlview_cmenu.c
View file @
91a8b481
...
...
@@ -174,14 +174,14 @@ static HRESULT WINAPI ItemMenu_QueryContextMenu(
mi
.
fMask
=
MIIM_ID
|
MIIM_STRING
|
MIIM_FTYPE
;
mi
.
dwTypeData
=
str
;
mi
.
cch
=
255
;
GetMenuItemInfoW
(
hmenu
,
FCIDM_SHVIEW_EXPLORE
,
MF_BYCOMMAND
,
&
mi
);
GetMenuItemInfoW
(
hmenu
,
FCIDM_SHVIEW_EXPLORE
+
idCmdFirst
,
MF_BYCOMMAND
,
&
mi
);
RemoveMenu
(
hmenu
,
FCIDM_SHVIEW_EXPLORE
+
idCmdFirst
,
MF_BYCOMMAND
);
mi
.
cbSize
=
sizeof
(
mi
);
mi
.
fMask
=
MIIM_ID
|
MIIM_TYPE
|
MIIM_STATE
|
MIIM_STRING
;
mi
.
dwTypeData
=
str
;
mi
.
fState
=
MFS_ENABLED
;
mi
.
wID
=
FCIDM_SHVIEW_EXPLORE
;
mi
.
wID
=
FCIDM_SHVIEW_EXPLORE
+
idCmdFirst
;
mi
.
fType
=
MFT_STRING
;
InsertMenuItemW
(
hmenu
,
(
uFlags
&
CMF_EXPLORE
)
?
1
:
2
,
MF_BYPOSITION
,
&
mi
);
}
...
...
@@ -189,7 +189,7 @@ static HRESULT WINAPI ItemMenu_QueryContextMenu(
SetMenuDefaultItem
(
hmenu
,
0
,
MF_BYPOSITION
);
if
(
uFlags
&
~
CMF_CANRENAME
)
RemoveMenu
(
hmenu
,
FCIDM_SHVIEW_RENAME
,
MF_BYCOMMAND
);
RemoveMenu
(
hmenu
,
FCIDM_SHVIEW_RENAME
+
idCmdFirst
,
MF_BYCOMMAND
);
else
{
UINT
enable
=
MF_BYCOMMAND
;
...
...
@@ -205,7 +205,7 @@ static HRESULT WINAPI ItemMenu_QueryContextMenu(
enable
|=
(
attr
&
SFGAO_CANRENAME
)
?
MFS_ENABLED
:
MFS_DISABLED
;
}
EnableMenuItem
(
hmenu
,
FCIDM_SHVIEW_RENAME
,
enable
);
EnableMenuItem
(
hmenu
,
FCIDM_SHVIEW_RENAME
+
idCmdFirst
,
enable
);
}
return
MAKE_HRESULT
(
SEVERITY_SUCCESS
,
0
,
uIDMax
-
idCmdFirst
);
...
...
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