qingdoa daoo : user32: Fix selection handling for listboxes with LBS_EXTENDEDSEL style.
Module: wine Branch: refs/heads/master Commit: 7c34bfab20443a2cc6a0f12e7f618bd1816dbb69 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=7c34bfab20443a2cc6a0f12e... Author: qingdoa daoo <qingdao33122(a)yahoo.com> Date: Fri Jun 2 09:02:42 2006 +0800 user32: Fix selection handling for listboxes with LBS_EXTENDEDSEL style. --- dlls/user/listbox.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/user/listbox.c b/dlls/user/listbox.c index cc87010..0b21a39 100644 --- a/dlls/user/listbox.c +++ b/dlls/user/listbox.c @@ -1387,7 +1387,7 @@ static LRESULT LISTBOX_SelectItemRange( 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;
participants (1)
-
Alexandre Julliard