Module: wine Branch: oldstable Commit: eab4d0ad1f344d9178573fd510ab7217b2ab13a0 URL: https://gitlab.winehq.org/wine/wine/-/commit/eab4d0ad1f344d9178573fd510ab721...
Author: Angelo Haller angelo@szanni.org Date: Tue Jun 28 16:16:09 2022 -0500
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 (cherry picked from commit 6c814f81aa3ab1ffdc27837c6b0d7a2c9b445316) Signed-off-by: Michael Stefaniuc mstefani@winehq.org
---
dlls/comctl32/listview.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 60072558da9..eb778c323f4 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -3585,7 +3585,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;