18 Feb
2022
18 Feb
'22
7:49 p.m.
From: Angelo Haller <angelo(a)szanni.org> Signed-off-by: Angelo Haller <angelo(a)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 39293467290..88a988a67e3 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -8966,6 +8966,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.35.1