David Hedberg : explorerframe: Fix INameSpaceTreeControl::RemoveRoot.

Alexandre Julliard julliard at winehq.org
Tue Aug 17 11:31:16 CDT 2010


Module: wine
Branch: master
Commit: 6963f372531986f609e48f3a6cda44b3b87311b1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6963f372531986f609e48f3a6cda44b3b87311b1

Author: David Hedberg <david.hedberg at gmail.com>
Date:   Mon Aug 16 09:17:31 2010 +0200

explorerframe: Fix INameSpaceTreeControl::RemoveRoot.

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 320b67d..e00249d 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;




More information about the wine-cvs mailing list