Igor Tarasov : comctl32: Do not send LVN_DELETEITEM on LVM_DELETEALLITEMS for virtual listviews.
Alexandre Julliard
julliard at winehq.org
Thu Feb 19 09:18:56 CST 2009
Module: wine
Branch: master
Commit: d86a5a611de6df1c5dfcfa476ec752b0648a4e52
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d86a5a611de6df1c5dfcfa476ec752b0648a4e52
Author: Igor Tarasov <tarasov.igor at gmail.com>
Date: Thu Feb 19 07:41:25 2009 +0400
comctl32: Do not send LVN_DELETEITEM on LVM_DELETEALLITEMS for virtual listviews.
---
dlls/comctl32/listview.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index af84938..6724139 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++)
{
More information about the wine-cvs
mailing list