Commit 5315da84 authored by Alexandre Julliard's avatar Alexandre Julliard

comctl32: Fix extending a multiple listview selection.

parent c2bc0e21
...@@ -7521,10 +7521,9 @@ static BOOL LISTVIEW_SetItemState(LISTVIEW_INFO *infoPtr, INT nItem, const LVITE ...@@ -7521,10 +7521,9 @@ static BOOL LISTVIEW_SetItemState(LISTVIEW_INFO *infoPtr, INT nItem, const LVITE
*/ */
if (bResult && (lvItem.state & lvItem.stateMask & LVIS_SELECTED) && if (bResult && (lvItem.state & lvItem.stateMask & LVIS_SELECTED) &&
((infoPtr->nSelectionMark == -1) || (lvItem.iItem <= infoPtr->nSelectionMark))) (infoPtr->nSelectionMark == -1))
{ {
int i; int i;
infoPtr->nSelectionMark = -1;
for (i = 0; i < infoPtr->nItemCount; i++) for (i = 0; i < infoPtr->nItemCount; i++)
{ {
if (infoPtr->uCallbackMask & LVIS_SELECTED) if (infoPtr->uCallbackMask & LVIS_SELECTED)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment