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
926f5bb4
Commit
926f5bb4
authored
Apr 29, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
May 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Use GetMenuInfo for IsMenu implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
000b637f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
menu.c
dlls/user32/menu.c
+7
-10
No files found.
dlls/user32/menu.c
View file @
926f5bb4
...
...
@@ -4482,19 +4482,16 @@ HMENU WINAPI LoadMenuIndirectA( LPCVOID template )
/**********************************************************************
* IsMenu (USER32.@)
*/
BOOL
WINAPI
IsMenu
(
HMENU
hmenu
)
BOOL
WINAPI
IsMenu
(
HMENU
menu
)
{
POPUPMENU
*
menu
;
BOOL
is_menu
;
menu
=
grab_menu_ptr
(
hmenu
);
is_menu
=
menu
!=
NULL
;
release_menu_ptr
(
menu
);
MENUINFO
info
;
if
(
!
is_menu
)
SetLastError
(
ERROR_INVALID_MENU_HANDLE
);
info
.
cbSize
=
sizeof
(
info
);
info
.
fMask
=
0
;
if
(
GetMenuInfo
(
menu
,
&
info
))
return
TRUE
;
return
is_menu
;
SetLastError
(
ERROR_INVALID_MENU_HANDLE
);
return
FALSE
;
}
/**********************************************************************
...
...
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