mirror of
https://github.com/reactos/reactos.git
synced 2024-07-13 16:15:05 +00:00
[USER32] Improve the check for item in MENU_FindItem().
svn path=/trunk/; revision=69861
This commit is contained in:
parent
e9415580c5
commit
c89c575aff
|
@ -110,7 +110,7 @@ ITEM *MENU_FindItem( HMENU *hmenu, UINT *nPos, UINT wFlags )
|
|||
else
|
||||
{
|
||||
PITEM item = menu->rgItems ? DesktopPtrToUser(menu->rgItems) : NULL;
|
||||
for (i = 0; item, i < menu->cItems; i++, item++)
|
||||
for (i = 0; item && (i < menu->cItems); i++, item++)
|
||||
{
|
||||
if (item->spSubMenu)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue