From b2b4b6939067b08924c59b74b1ea1a753b6f24b6 Mon Sep 17 00:00:00 2001 From: Angelo Haller Date: Tue, 28 Jun 2022 16:16:11 -0500 Subject: [PATCH 5/6] comctl32/listview: Don't send LVN_ODSTATECHANGED for empty ranges. To: wine-devel@winehq.org Signed-off-by: Angelo Haller Signed-off-by: Zhiyi Zhang --- dlls/comctl32/listview.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index db04affa56c..c5eb2d78cf2 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -9031,6 +9031,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)); -- 2.34.1