Do not keep the handle of a deleted item as the selectedItem..

This commit is contained in:
Gerard Patel 2001-08-20 18:00:54 +00:00 committed by Alexandre Julliard
parent f158f541dd
commit ede9881523
1 changed files with 2 additions and 0 deletions

View File

@ -838,6 +838,8 @@ TREEVIEW_FreeItem(TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM *item)
{
DPA_DeletePtr(infoPtr->items, DPA_GetPtrIndex(infoPtr->items, item));
COMCTL32_Free(item);
if (infoPtr->selectedItem == item)
infoPtr->selectedItem = NULL;
}