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
9f267c22
Commit
9f267c22
authored
Jun 21, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Move GetMenuItemID implementation from user32.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
parent
0868ca15
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
menu.c
dlls/user32/menu.c
+2
-10
menu.c
dlls/win32u/menu.c
+6
-0
ntuser.h
include/ntuser.h
+1
-0
No files found.
dlls/user32/menu.c
View file @
9f267c22
...
...
@@ -537,17 +537,9 @@ INT WINAPI GetMenuItemCount( HMENU menu )
/**********************************************************************
* GetMenuItemID (USER32.@)
*/
UINT
WINAPI
GetMenuItemID
(
HMENU
hMenu
,
INT
nP
os
)
UINT
WINAPI
GetMenuItemID
(
HMENU
menu
,
INT
p
os
)
{
POPUPMENU
*
menu
;
UINT
id
,
pos
;
if
(
!
(
menu
=
find_menu_item
(
hMenu
,
nPos
,
MF_BYPOSITION
,
&
pos
)))
return
-
1
;
id
=
menu
->
items
[
pos
].
fType
&
MF_POPUP
?
-
1
:
menu
->
items
[
pos
].
wID
;
release_menu_ptr
(
menu
);
return
id
;
return
NtUserThunkedMenuItemInfo
(
menu
,
pos
,
MF_BYPOSITION
,
NtUserGetMenuItemID
,
NULL
,
NULL
);
}
...
...
dlls/win32u/menu.c
View file @
9f267c22
...
...
@@ -1121,6 +1121,12 @@ UINT WINAPI NtUserThunkedMenuItemInfo( HMENU handle, UINT pos, UINT flags, UINT
switch
(
method
)
{
case
NtUserGetMenuItemID
:
if
(
!
(
menu
=
find_menu_item
(
handle
,
pos
,
flags
,
&
i
)))
return
-
1
;
ret
=
menu
->
items
[
i
].
fType
&
MF_POPUP
?
-
1
:
menu
->
items
[
i
].
wID
;
release_menu_ptr
(
menu
);
break
;
case
NtUserGetMenuItemInfoA
:
return
get_menu_item_info
(
handle
,
pos
,
flags
,
info
,
TRUE
);
...
...
include/ntuser.h
View file @
9f267c22
...
...
@@ -224,6 +224,7 @@ enum
NtUserSetMenuItemInfo
,
NtUserInsertMenuItem
,
/* Wine extensions */
NtUserGetMenuItemID
,
NtUserGetMenuItemInfoA
,
NtUserGetMenuItemInfoW
,
NtUserGetMenuState
,
...
...
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