comctl32: Fix extending a multiple listview selection.

This commit is contained in:
Alexandre Julliard 2008-05-21 14:26:35 +02:00
parent c2bc0e21a2
commit 5315da8445
1 changed files with 1 additions and 2 deletions

View File

@ -7521,10 +7521,9 @@ static BOOL LISTVIEW_SetItemState(LISTVIEW_INFO *infoPtr, INT nItem, const LVITE
*/
if (bResult && (lvItem.state & lvItem.stateMask & LVIS_SELECTED) &&
((infoPtr->nSelectionMark == -1) || (lvItem.iItem <= infoPtr->nSelectionMark)))
(infoPtr->nSelectionMark == -1))
{
int i;
infoPtr->nSelectionMark = -1;
for (i = 0; i < infoPtr->nItemCount; i++)
{
if (infoPtr->uCallbackMask & LVIS_SELECTED)