Skip to content
Snippets Groups Projects
Commit 34329cf5 authored by Michael McCormack's avatar Michael McCormack Committed by Alexandre Julliard
Browse files

GetMenuItemID: return -1 for invalid menu items, not zero.

parent 4be97b66
No related branches found
No related tags found
No related merge requests found
......@@ -3476,7 +3476,7 @@ UINT WINAPI GetMenuItemID( HMENU hMenu, INT nPos )
{
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;
return lpmi->wID;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment