explorerframe: Fix INameSpaceTreeControl::RemoveRoot.

The root shellitem was being freed before getting passed to the event sink.
This commit is contained in:
David Hedberg 2010-08-16 09:17:31 +02:00 committed by Alexandre Julliard
parent 6fbfb7cd1d
commit 6963f37253
1 changed files with 1 additions and 1 deletions

View File

@ -647,8 +647,8 @@ static HRESULT WINAPI NSTC2_fnRemoveRoot(INameSpaceTreeControl2* iface,
TRACE("root %p\n", root);
if(root)
{
SendMessageW(This->hwnd_tv, TVM_DELETEITEM, 0, (LPARAM)root->htreeitem);
events_OnItemDeleted(This, root->psi, TRUE);
SendMessageW(This->hwnd_tv, TVM_DELETEITEM, 0, (LPARAM)root->htreeitem);
list_remove(&root->entry);
HeapFree(GetProcessHeap(), 0, root);
return S_OK;