Jason Edmeades : user32: Fix regression in alt, then right processing with eg wines notepad.
Module: wine Branch: master Commit: 902a384b3865399db0443bea3ec4e0b8653d26e2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=902a384b3865399db0443bea3e... Author: Jason Edmeades <jason.edmeades(a)googlemail.com> Date: Sun Aug 12 22:29:02 2007 +0100 user32: Fix regression in alt, then right processing with eg wines notepad. --- dlls/user32/menu.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/user32/menu.c b/dlls/user32/menu.c index 2a2d3ab..3a75005 100644 --- a/dlls/user32/menu.c +++ b/dlls/user32/menu.c @@ -2682,13 +2682,13 @@ static LRESULT MENU_DoNextMenu( MTRACKER* pmt, UINT vk ) else if ((vk == VK_RIGHT) && !IS_SYSTEM_MENU(menu)) { int i = menu->FocusedItem + 1; - while (i < (menu->nItems - 1)) { + while (i < menu->nItems) { if ((menu->items[i].wID >= SC_SIZE && menu->items[i].wID <= SC_RESTORE)) { i++; } else break; } - if (i == (menu->nItems - 1)) { + if (i == menu->nItems) { atEnd = TRUE; } }
participants (1)
-
Alexandre Julliard