Delete the items if we actually own them.

This commit is contained in:
Dimitrie O. Paun 2002-10-23 22:25:42 +00:00 committed by Alexandre Julliard
parent 8f15b6e6b3
commit bf761a331c

View file

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