comctl32/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:19 +03:00 committed by Alexandre Julliard
parent c9b6dd83a3
commit da75153eae

View file

@ -2349,8 +2349,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 */