CORE-10386
Fixes the behavior when selecting multiple files in a folder with the Shift key, while using either the Large Icons or Small Icons view, so that it is consistent with how it works on Windows.
Proposed changes:
Disable the specialized code for these views in LISTVIEW_SetGroupSelection, using the same code as for the list and details views, which also works fine for them.
item.state = LVIS_SELECTED;
item.stateMask = LVIS_SELECTED;
+#ifndef __REACTOS__
if ((infoPtr->uView == LV_VIEW_LIST) || (infoPtr->uView == LV_VIEW_DETAILS))
{
+#endif
if (infoPtr->nSelectionMark == -1)
{
infoPtr->nSelectionMark = nItem;
sel.upper = max(infoPtr->nSelectionMark, nItem) + 1;
ranges_add(selection, sel);
}
+#ifndef __REACTOS__
}
else
{
}
iterator_destroy(&i);
}
+#endif
/* disable per item notifications on LVS_OWNERDATA style
FIXME: single LVN_ODSTATECHANGED should be used */