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

Signed-off-by: Angelo Haller <angelo@szanni.org>
This commit is contained in:
Angelo Haller 2022-06-28 16:16:11 -05:00 committed by Alexandre Julliard
parent c732901542
commit 4d4513bbad

View file

@ -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));