Commit 7c34bfab authored by qingdoa daoo's avatar qingdoa daoo Committed by Alexandre Julliard

user32: Fix selection handling for listboxes with LBS_EXTENDEDSEL style.

parent b8d9f395
......@@ -1387,7 +1387,7 @@ static LRESULT LISTBOX_SelectItemRange( LB_DESCR *descr, INT first,
if (!descr->nb_items) return LB_OKAY;
if (last >= descr->nb_items) last = descr->nb_items - 1;
if (last == -1 || last >= descr->nb_items) last = descr->nb_items - 1;
if (first < 0) first = 0;
if (last < first) return LB_OKAY;
......
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