comctl32/listview: Initialize marqueeRect from left-click coordinates before starting...
commitdaf95aaadf3a59f0ccc129a853327417b5e4f07c
authorHugh McMaster <hugh.mcmaster@outlook.com>
Mon, 26 Apr 2021 10:59:51 +0000 (26 20:59 +1000)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 3 May 2021 21:19:53 +0000 (3 23:19 +0200)
treeec98cbd658660dd0ad66f970f1dceb804db4aee0
parent8241d21ae0d385bb436930320056d16a8906caf5
comctl32/listview: Initialize marqueeRect from left-click coordinates before starting a marquee highlight.

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.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/comctl32/listview.c