Delete the items if we actually own them.
This commit is contained in:
parent
8f15b6e6b3
commit
bf761a331c
@ -3890,7 +3890,7 @@ static BOOL LISTVIEW_DeleteAllItems(LISTVIEW_INFO *infoPtr)
|
|||||||
nmlv.iItem = i;
|
nmlv.iItem = i;
|
||||||
notify_listview(infoPtr, LVN_DELETEITEM, &nmlv);
|
notify_listview(infoPtr, LVN_DELETEITEM, &nmlv);
|
||||||
}
|
}
|
||||||
if (infoPtr->dwStyle & LVS_OWNERDATA)
|
if (!(infoPtr->dwStyle & LVS_OWNERDATA))
|
||||||
{
|
{
|
||||||
hdpaSubItems = (HDPA)DPA_GetPtr(infoPtr->hdpaItems, i);
|
hdpaSubItems = (HDPA)DPA_GetPtr(infoPtr->hdpaItems, i);
|
||||||
for (j = 0; j < hdpaSubItems->nItemCount; j++)
|
for (j = 0; j < hdpaSubItems->nItemCount; j++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user