[PATCH 3/9] user32/listbox: Use descr->selected_item for single-selection listboxes when checking selection
Gabriel Ivăncescu
gabrielopcode at gmail.com
Thu Feb 14 06:06:42 CST 2019
Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---
dlls/user32/listbox.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/user32/listbox.c b/dlls/user32/listbox.c
index ac301c1..0e0399f 100644
--- a/dlls/user32/listbox.c
+++ b/dlls/user32/listbox.c
@@ -150,6 +150,8 @@ static BOOL resize_storage(LB_DESCR *descr, UINT items_size)
static BOOL is_item_selected( const LB_DESCR *descr, UINT index )
{
+ if (!(descr->style & (LBS_MULTIPLESEL | LBS_EXTENDEDSEL)))
+ return index == descr->selected_item;
return descr->items[index].selected;
}
--
2.20.1
More information about the wine-devel
mailing list