user32: Fix selection handling for listboxes with LBS_EXTENDEDSEL style.

This commit is contained in:
qingdoa daoo 2006-06-02 09:02:42 +08:00 committed by Alexandre Julliard
parent b8d9f3955a
commit 7c34bfab20
1 changed files with 1 additions and 1 deletions

View File

@ -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;