From bf761a331c88f1e67e4f7bcf7b6a35488d6facf7 Mon Sep 17 00:00:00 2001 From: "Dimitrie O. Paun" Date: Wed, 23 Oct 2002 22:25:42 +0000 Subject: [PATCH] Delete the items if we actually own them. --- dlls/comctl32/listview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 69874e9bdbc..72f2a627000 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -3890,7 +3890,7 @@ static BOOL LISTVIEW_DeleteAllItems(LISTVIEW_INFO *infoPtr) nmlv.iItem = i; notify_listview(infoPtr, LVN_DELETEITEM, &nmlv); } - if (infoPtr->dwStyle & LVS_OWNERDATA) + if (!(infoPtr->dwStyle & LVS_OWNERDATA)) { hdpaSubItems = (HDPA)DPA_GetPtr(infoPtr->hdpaItems, i); for (j = 0; j < hdpaSubItems->nItemCount; j++) -- 2.11.4.GIT