user32/listbox: Fix multicolumn navigation on VK_RIGHT.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2018-08-22 16:50:18 +03:00 committed by Alexandre Julliard
parent 17df6aa5a3
commit c9b6dd83a3
1 changed files with 1 additions and 2 deletions

View File

@ -2354,8 +2354,7 @@ static LRESULT LISTBOX_HandleKeyDown( LB_DESCR *descr, DWORD key )
if (descr->style & LBS_MULTICOLUMN)
{
bForceSelection = FALSE;
if (descr->focus_item + descr->page_size < descr->nb_items)
caret = descr->focus_item + descr->page_size;
caret = min(descr->focus_item + descr->page_size, descr->nb_items - 1);
break;
}
/* fall through */