From 12dd1bc12e6fd5d4bcb2a6bc02f475f115341dd9 Mon Sep 17 00:00:00 2001 From: Michael Jung Date: Mon, 28 Nov 2005 17:30:11 +0100 Subject: [PATCH] Use GetUIObjectOf instead of BindToObject to get a IDropTarget object. --- dlls/shell32/shlview.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c index 6f6d8483e87..0c85aed677c 100644 --- a/dlls/shell32/shlview.c +++ b/dlls/shell32/shlview.c @@ -2223,9 +2223,9 @@ static HRESULT drag_notify_subitem(IShellViewImpl *This, DWORD grfKeyState, POIN lvItem.iItem = lResult; ListView_GetItemA(This->hWndList, &lvItem); - /* ... and bind pCurDropTarget to this folder's IDropTarget interface */ - hr = IShellFolder_BindToObject(This->pSFParent, (LPITEMIDLIST)lvItem.lParam, NULL, - &IID_IDropTarget, (LPVOID*)&This->pCurDropTarget); + /* ... and bind pCurDropTarget to the IDropTarget interface of an UIObject of this object */ + hr = IShellFolder_GetUIObjectOf(This->pSFParent, This->hWndList, 1, + (LPCITEMIDLIST*)&lvItem.lParam, &IID_IDropTarget, NULL, (LPVOID*)&This->pCurDropTarget); } /* If anything failed, pCurDropTarget should be NULL now, which ought to be a save state. */ -- 2.11.4.GIT