[PATCH 2/6] explorerframe: Fix INameSpaceTreeControl::RemoveRoot.
David Hedberg
david.hedberg at gmail.com
Mon Aug 16 02:17:31 CDT 2010
The root shellitem was being freed before getting passed to the event sink.
---
dlls/explorerframe/nstc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/explorerframe/nstc.c b/dlls/explorerframe/nstc.c
index 5f6de53..3bd3aa2 100644
--- a/dlls/explorerframe/nstc.c
+++ b/dlls/explorerframe/nstc.c
@@ -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;
--
1.7.2
More information about the wine-patches
mailing list