Angelo Haller : comctl32/listview: Don't send LVN_ODSTATECHANGED for empty ranges.

Alexandre Julliard julliard at winehq.org
Mon Aug 8 15:19:03 CDT 2022


Module: wine
Branch: master
Commit: 4d4513bbad6491b7e6cf7cb84fe8fcf2afd20cfe
URL:    https://gitlab.winehq.org/wine/wine/-/commit/4d4513bbad6491b7e6cf7cb84fe8fcf2afd20cfe

Author: Angelo Haller <angelo at szanni.org>
Date:   Tue Jun 28 16:16:11 2022 -0500

comctl32/listview: Don't send LVN_ODSTATECHANGED for empty ranges.

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 e48b1fa2847..38d43a9f742 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -9032,6 +9032,7 @@ static VOID LISTVIEW_SetOwnerDataState(LISTVIEW_INFO *infoPtr, INT nFirst, INT n
 {
     NMLVODSTATECHANGE nmlv;
 
+    if (nFirst == nLast) return;
     if (!item) return;
 
     ZeroMemory(&nmlv, sizeof(nmlv));




More information about the wine-cvs mailing list