From d86a5a611de6df1c5dfcfa476ec752b0648a4e52 Mon Sep 17 00:00:00 2001 From: Igor Tarasov Date: Thu, 19 Feb 2009 07:41:25 +0400 Subject: [PATCH] comctl32: Do not send LVN_DELETEITEM on LVM_DELETEALLITEMS for virtual listviews. --- dlls/comctl32/listview.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index af84938eb88..6724139f7df 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -4532,10 +4532,11 @@ static BOOL LISTVIEW_DeleteAllItems(LISTVIEW_INFO *infoPtr, BOOL destroy) for (i = infoPtr->nItemCount - 1; i >= 0; i--) { - /* send LVN_DELETEITEM notification, if not suppressed */ - if (!bSuppress) notify_deleteitem(infoPtr, i); if (!(infoPtr->dwStyle & LVS_OWNERDATA)) { + /* send LVN_DELETEITEM notification, if not suppressed + and if it is not a virtual listview */ + if (!bSuppress) notify_deleteitem(infoPtr, i); hdpaSubItems = DPA_GetPtr(infoPtr->hdpaItems, i); for (j = 0; j < DPA_GetPtrCount(hdpaSubItems); j++) { -- 2.11.4.GIT