Nikolay Sivov : comctl32/listview: Search through all items in LVFI_NEARESTXY mode.
Alexandre Julliard
julliard at winehq.org
Mon May 22 15:54:03 CDT 2017
Module: wine
Branch: master
Commit: 407a3c06fa5fc64d6bd1ddaa24d5692091dfde23
URL: http://source.winehq.org/git/wine.git/?a=commit;h=407a3c06fa5fc64d6bd1ddaa24d5692091dfde23
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon May 22 00:09:39 2017 +0300
comctl32/listview: Search through all items in LVFI_NEARESTXY mode.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/comctl32/listview.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index c681451..35c2453 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -6392,6 +6392,8 @@ static INT LISTVIEW_FindItemW(const LISTVIEW_INFO *infoPtr, INT nStart,
lvItem.mask &= ~LVIF_TEXT;
}
+ nItem = bNearest ? -1 : nStart + 1;
+
again:
for (; nItem < nLast; nItem++)
{
More information about the wine-cvs
mailing list