qingdoa daoo : user32:
Fix selection handling for listboxes with LBS_EXTENDEDSEL style.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Jun 2 04:55:58 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 7c34bfab20443a2cc6a0f12e7f618bd1816dbb69
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=7c34bfab20443a2cc6a0f12e7f618bd1816dbb69
Author: qingdoa daoo <qingdao33122 at 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;
More information about the wine-cvs
mailing list