mirror of
https://github.com/reactos/reactos.git
synced 2025-05-30 14:39:46 +00:00
[MYDOCS] Follow-up of #2624
Use HIDA_GetPIDLFolder and HIDA_GetPIDLItem. CORE-12562
This commit is contained in:
parent
5a5ba1ad10
commit
2dc2ec9de3
1 changed files with 2 additions and 3 deletions
|
@ -95,12 +95,11 @@ CMyDocsDropHandler::Drop(IDataObject *pDataObject, DWORD dwKeyState,
|
||||||
// for all source items
|
// for all source items
|
||||||
CStringW strSrcList;
|
CStringW strSrcList;
|
||||||
WCHAR szSrc[MAX_PATH];
|
WCHAR szSrc[MAX_PATH];
|
||||||
const BYTE *pb = reinterpret_cast<BYTE *>(pida);
|
PCIDLIST_ABSOLUTE pidlParent = HIDA_GetPIDLFolder(pida);
|
||||||
PCIDLIST_ABSOLUTE pidlParent = reinterpret_cast<PCIDLIST_ABSOLUTE>(pb + pida->aoffset[0]);
|
|
||||||
for (iItem = 0; iItem < cItems; ++iItem)
|
for (iItem = 0; iItem < cItems; ++iItem)
|
||||||
{
|
{
|
||||||
// query source pidl
|
// query source pidl
|
||||||
PCITEMID_CHILD pidlChild = reinterpret_cast<PCITEMID_CHILD>(pb + pida->aoffset[iItem + 1]);
|
PCITEMID_CHILD pidlChild = HIDA_GetPIDLItem(pida, iItem);
|
||||||
CComHeapPtr<ITEMIDLIST> pidl(ILCombine(pidlParent, pidlChild));
|
CComHeapPtr<ITEMIDLIST> pidl(ILCombine(pidlParent, pidlChild));
|
||||||
|
|
||||||
// can get path?
|
// can get path?
|
||||||
|
|
Loading…
Reference in a new issue