comctl32/listview: Send LVN_ODSTATECHANGED only for LVS_OWNERDATA listviews.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53123
Signed-off-by: Angelo Haller <angelo@szanni.org>
This commit is contained in:
Angelo Haller 2022-06-28 16:16:09 -05:00 committed by Alexandre Julliard
parent 425fd8f80e
commit 6c814f81aa

View file

@ -3587,7 +3587,8 @@ static BOOL LISTVIEW_AddGroupSelection(LISTVIEW_INFO *infoPtr, INT nItem)
for (i = nFirst; i <= nLast; i++)
LISTVIEW_SetItemState(infoPtr,i,&item);
LISTVIEW_SetOwnerDataState(infoPtr, nFirst, nLast, &item);
if (infoPtr->dwStyle & LVS_OWNERDATA)
LISTVIEW_SetOwnerDataState(infoPtr, nFirst, nLast, &item);
if (!IsWindow(hwndSelf))
return FALSE;