Commit 478316ce authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

explorerframe: Get rid of interface pointer casts.

parent f9ca298b
...@@ -495,7 +495,7 @@ static LRESULT create_namespacetree(HWND hWnd, CREATESTRUCTW *crs) ...@@ -495,7 +495,7 @@ static LRESULT create_namespacetree(HWND hWnd, CREATESTRUCTW *crs)
ERR("Failed to get the System Image List.\n"); ERR("Failed to get the System Image List.\n");
} }
INameSpaceTreeControl_AddRef((INameSpaceTreeControl*)This); INameSpaceTreeControl2_AddRef(&This->INameSpaceTreeControl2_iface);
/* Subclass the treeview to get the keybord events. */ /* Subclass the treeview to get the keybord events. */
This->tv_oldwndproc = (WNDPROC)SetWindowLongPtrW(This->hwnd_tv, GWLP_WNDPROC, This->tv_oldwndproc = (WNDPROC)SetWindowLongPtrW(This->hwnd_tv, GWLP_WNDPROC,
...@@ -528,10 +528,10 @@ static LRESULT destroy_namespacetree(NSTC2Impl *This) ...@@ -528,10 +528,10 @@ static LRESULT destroy_namespacetree(NSTC2Impl *This)
RemovePropA(This->hwnd_tv, "PROP_THIS"); RemovePropA(This->hwnd_tv, "PROP_THIS");
} }
INameSpaceTreeControl_RemoveAllRoots((INameSpaceTreeControl*)This); INameSpaceTreeControl2_RemoveAllRoots(&This->INameSpaceTreeControl2_iface);
/* This reference was added in create_namespacetree */ /* This reference was added in create_namespacetree */
INameSpaceTreeControl_Release((INameSpaceTreeControl*)This); INameSpaceTreeControl2_Release(&This->INameSpaceTreeControl2_iface);
return TRUE; return TRUE;
} }
...@@ -1597,8 +1597,8 @@ HRESULT NamespaceTreeControl_Constructor(IUnknown *pUnkOuter, REFIID riid, void ...@@ -1597,8 +1597,8 @@ HRESULT NamespaceTreeControl_Constructor(IUnknown *pUnkOuter, REFIID riid, void
list_init(&nstc->roots); list_init(&nstc->roots);
ret = INameSpaceTreeControl_QueryInterface((INameSpaceTreeControl*)nstc, riid, ppv); ret = INameSpaceTreeControl2_QueryInterface(&nstc->INameSpaceTreeControl2_iface, riid, ppv);
INameSpaceTreeControl_Release((INameSpaceTreeControl*)nstc); INameSpaceTreeControl2_Release(&nstc->INameSpaceTreeControl2_iface);
TRACE("--(%p)\n", ppv); TRACE("--(%p)\n", ppv);
return ret; return ret;
......
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