mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 01:42:30 +00:00
[SHELL32]
- Use CreateViewObject instead of QueryInterface to get a drop target from a shell folder. CORE-9846 svn path=/trunk/; revision=68219
This commit is contained in:
parent
c146d77c04
commit
6607052bc0
|
@ -2906,7 +2906,7 @@ HRESULT CDefView::drag_notify_subitem(DWORD grfKeyState, POINTL pt, DWORD *pdwEf
|
|||
{
|
||||
/* We are not above one of the listview's subitems. Bind to the parent folder's
|
||||
* DropTarget interface. */
|
||||
hr = m_pSFParent->QueryInterface(IID_PPV_ARG(IDropTarget,&m_pCurDropTarget));
|
||||
hr = m_pSFParent->CreateViewObject(NULL, IID_PPV_ARG(IDropTarget,&m_pCurDropTarget));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -1086,7 +1086,7 @@ CDefaultContextMenu::DoPaste(
|
|||
}
|
||||
|
||||
CComPtr<IDropTarget> pdrop;
|
||||
hr = psfTarget->QueryInterface(IID_PPV_ARG(IDropTarget, &pdrop));
|
||||
hr = psfTarget->CreateViewObject(NULL, IID_PPV_ARG(IDropTarget, &pdrop));
|
||||
if (FAILED(hr))
|
||||
{
|
||||
ERR("Error getting IDropTarget interface\n");
|
||||
|
@ -1154,7 +1154,7 @@ CDefaultContextMenu::DoCreateLink(
|
|||
return hr;
|
||||
}
|
||||
|
||||
hr = psfTarget->QueryInterface(IID_PPV_ARG(IDropTarget, &pDT));
|
||||
hr = psfTarget->CreateViewObject(NULL, IID_PPV_ARG(IDropTarget, &pDT));
|
||||
if (FAILED(hr))
|
||||
{
|
||||
ERR("no IDropTarget Interface\n");
|
||||
|
|
Loading…
Reference in a new issue