[PATCH 2/4] comctl32/listview: Send LVN_ODSTATECHANGED only for virtual lists.

Angelo Haller wine-devel at szanni.org
Fri Feb 18 13:49:47 CST 2022


From: Angelo Haller <angelo at szanni.org>

The LVN_ODSTATECHANGED notification should only be sent to lists
that have LVS_OWNERDATA set.

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 aafab6db3a7..18041eb239e 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -8959,6 +8959,7 @@ static BOOL LISTVIEW_SetOwnerDataState(LISTVIEW_INFO *infoPtr, INT nFirst, INT n
 {
     NMLVODSTATECHANGE nmlv;
 
+    if (!(infoPtr->dwStyle & LVS_OWNERDATA)) return FALSE;
     if (!item) return FALSE;
 
     ZeroMemory(&nmlv, sizeof(nmlv));
-- 
2.35.1




More information about the wine-devel mailing list