[PATCH] comctl32/listview: Do not select the first list item when drawing a marquee rectangle

Hugh McMaster hugh.mcmaster at outlook.com
Mon May 22 08:02:41 CDT 2017


Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
 dlls/comctl32/listview.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index c681451..a117f83 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -3892,6 +3892,9 @@ static void LISTVIEW_MarqueeHighlight(LISTVIEW_INFO *infoPtr, const POINT *coord
     if ((scroll & SCROLL_DOWN) && (coords_orig->y >= infoPtr->rcList.bottom))
         LISTVIEW_Scroll(infoPtr, 0, (coords_orig->y - infoPtr->rcList.bottom));
 
+    if (IsRectEmpty(&infoPtr->marqueeRect))
+        infoPtr->marqueeRect = rect;
+
     iterator_frameditems_absolute(&old_elems, infoPtr, &infoPtr->marqueeRect);
 
     infoPtr->marqueeRect = rect;
-- 
2.7.4




More information about the wine-patches mailing list