Jason Edmeades : user32: Fix regression in alt,
then right processing with eg wines notepad.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Aug 13 06:31:50 CDT 2007
Module: wine
Branch: master
Commit: 902a384b3865399db0443bea3ec4e0b8653d26e2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=902a384b3865399db0443bea3ec4e0b8653d26e2
Author: Jason Edmeades <jason.edmeades at 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;
}
}
More information about the wine-cvs
mailing list