Skip to content

Commit 918a818

Browse files
authored
[WINESYNC][COMCTL32] Listview: Initialize marqueeRect from left-click coordinates before starting a marquee highlight (reactos#5555)
The infoPtr->marqueeRect structure is not currently initialized before the marquee highlight sequence starts, resulting in the RECT having initial coordinates of (0,0)-(0,0). These coordinates cause the first item in the listview control to be identified as being within the range of the marqueeRect's coordinates. That item is then set to LVIS_SELECTED even though it is not part of the marquee selection. Wine commit: daf95aaadf3a59f0ccc129a853327417b5e4f07c author: Hugh McMaster <[email protected]> Mon, 26 Apr 2021 10:59:51 +0000 (20:59 +1000)
1 parent c64103d commit 918a818

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dll/win32/comctl32/listview.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4218,6 +4218,7 @@ static LRESULT LISTVIEW_MouseMove(LISTVIEW_INFO *infoPtr, WORD fwKeys, INT x, IN
42184218

42194219
/* Begin selection and capture mouse */
42204220
infoPtr->bMarqueeSelect = TRUE;
4221+
infoPtr->marqueeRect = rect;
42214222
SetCapture(infoPtr->hwndSelf);
42224223
}
42234224
}

0 commit comments

Comments
 (0)