[PATCH 5/6] comctl32/listview: Send LVN_ODSTATECHANGED only for true ranges.
Angelo Haller
wine-devel at szanni.org
Mon May 9 17:17:20 CDT 2022
From: Angelo Haller <angelo at szanni.org>
Signed-off-by: Angelo Haller <angelo at szanni.org>
---
dlls/comctl32/listview.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index 41246a8c1d3..065f8bc90d8 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -8967,6 +8967,7 @@ static BOOL LISTVIEW_SetOwnerDataState(LISTVIEW_INFO *infoPtr, INT nFirst, INT n
NMLVODSTATECHANGE nmlv;
if (!(infoPtr->dwStyle & LVS_OWNERDATA)) return FALSE;
+ if (nFirst == nLast) return FALSE;
if (!item) return FALSE;
ZeroMemory(&nmlv, sizeof(nmlv));
--
2.36.0
More information about the wine-devel
mailing list