Commit c9b6dd83 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

user32/listbox: Fix multicolumn navigation on VK_RIGHT.

parent 17df6aa5
...@@ -2354,8 +2354,7 @@ static LRESULT LISTBOX_HandleKeyDown( LB_DESCR *descr, DWORD key ) ...@@ -2354,8 +2354,7 @@ static LRESULT LISTBOX_HandleKeyDown( LB_DESCR *descr, DWORD key )
if (descr->style & LBS_MULTICOLUMN) if (descr->style & LBS_MULTICOLUMN)
{ {
bForceSelection = FALSE; bForceSelection = FALSE;
if (descr->focus_item + descr->page_size < descr->nb_items) caret = min(descr->focus_item + descr->page_size, descr->nb_items - 1);
caret = descr->focus_item + descr->page_size;
break; break;
} }
/* fall through */ /* fall through */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment