Commit ede98815 authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

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

parent f158f541
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment