Commit eda3732a authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

user32: Reimplement GetMenuContextHelpId on top of GetMenuInfo.

parent d4b8ca78
...@@ -4309,20 +4309,13 @@ BOOL WINAPI GetMenuInfo( HMENU menu, MENUINFO *info ) ...@@ -4309,20 +4309,13 @@ BOOL WINAPI GetMenuInfo( HMENU menu, MENUINFO *info )
/********************************************************************** /**********************************************************************
* GetMenuContextHelpId (USER32.@) * GetMenuContextHelpId (USER32.@)
*/ */
DWORD WINAPI GetMenuContextHelpId( HMENU hMenu ) DWORD WINAPI GetMenuContextHelpId( HMENU menu )
{ {
DWORD help_id = 0; MENUINFO info;
POPUPMENU *menu; TRACE( "(%p)\n", menu );
info.cbSize = sizeof(info);
TRACE("(%p)\n", hMenu); info.fMask = MIM_HELPID;
return GetMenuInfo( menu, &info ) ? info.dwContextHelpID : 0;
if ((menu = grab_menu_ptr(hMenu)))
{
help_id = menu->dwContextHelpID;
release_menu_ptr(menu);
}
return help_id;
} }
/********************************************************************** /**********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment