mirror of
https://github.com/reactos/reactos.git
synced 2024-11-03 21:34:00 +00:00
implemented SHGetRealIDL()
svn path=/trunk/; revision=7475
This commit is contained in:
parent
18045c4c66
commit
b9107ed69d
1 changed files with 15 additions and 3 deletions
|
@ -687,6 +687,7 @@ LPITEMIDLIST WINAPI ILCombine(LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2)
|
|||
/* TRACE(pidl,"--new pidl=%p\n",pidlNew);*/
|
||||
return pidlNew;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* SHGetRealIDL [SHELL32.98]
|
||||
*
|
||||
|
@ -694,10 +695,21 @@ LPITEMIDLIST WINAPI ILCombine(LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2)
|
|||
*/
|
||||
HRESULT WINAPI SHGetRealIDL(LPSHELLFOLDER lpsf, LPCITEMIDLIST pidlSimple, LPITEMIDLIST *pidlReal)
|
||||
{
|
||||
FIXME("sf=%p pidlSimple=%p pidlReal=%p\n", lpsf, pidlSimple, pidlReal);
|
||||
LPITEMIDLIST parentpidl;
|
||||
HRESULT hr;
|
||||
|
||||
pdump (pidlSimple);
|
||||
return 0;
|
||||
TRACE("sf=%p pidlSimple=%p pidlReal=%p\n", lpsf, pidlSimple, pidlReal);
|
||||
|
||||
hr = IShellFolder_ParseDisplayName(lpsf, 0, NULL, NULL, NULL, &parentpidl, NULL);
|
||||
|
||||
if (SUCCEEDED(hr)) {
|
||||
*pidlReal = ILCombine(parentpidl, pidlSimple);
|
||||
|
||||
if (!*pidlReal)
|
||||
hr = E_OUTOFMEMORY;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
|
|
Loading…
Reference in a new issue