mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 22:50:43 +00:00
GetMenuItemID: return -1 for invalid menu items, not zero.
This commit is contained in:
parent
4be97b6696
commit
34329cf58e
@ -3476,7 +3476,7 @@ UINT WINAPI GetMenuItemID( HMENU hMenu, INT nPos )
|
|||||||
{
|
{
|
||||||
MENUITEM * lpmi;
|
MENUITEM * lpmi;
|
||||||
|
|
||||||
if (!(lpmi = MENU_FindItem(&hMenu,&nPos,MF_BYPOSITION))) return 0;
|
if (!(lpmi = MENU_FindItem(&hMenu,&nPos,MF_BYPOSITION))) return -1;
|
||||||
if (lpmi->fType & MF_POPUP) return -1;
|
if (lpmi->fType & MF_POPUP) return -1;
|
||||||
return lpmi->wID;
|
return lpmi->wID;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user