mirror of
https://github.com/reactos/reactos.git
synced 2026-06-09 01:12:59 +08:00
[BROWSEUI] Don't pass the internal PIDL to the shell for processing (#7859)
CORE-20063
This commit is contained in:
@@ -76,6 +76,9 @@ static BYTE GetSpecial(PCIDLIST_ABSOLUTE pidl)
|
||||
|
||||
static HRESULT BindToObject(PCIDLIST_ABSOLUTE pidl, REFIID riid, void **ppv)
|
||||
{
|
||||
if (GetSpecial(pidl))
|
||||
return E_FAIL;
|
||||
|
||||
PCUITEMID_CHILD pidlChild;
|
||||
CComPtr<IShellFolder> psf;
|
||||
HRESULT hr = SHBindToParent(pidl, IID_PPV_ARG(IShellFolder, &psf), &pidlChild);
|
||||
|
||||
@@ -311,9 +311,9 @@ HRESULT CDesktopFolder::_GetSFFromPidl(LPCITEMIDLIST pidl, IShellFolder2** psf)
|
||||
{
|
||||
FIXME("Desktop is unexpected here!\n");
|
||||
}
|
||||
else
|
||||
else if (_ILIsSpecialFolder(pidl))
|
||||
{
|
||||
ASSERT(!_ILIsSpecialFolder(pidl));
|
||||
FIXME("Unexpected PIDL type %#x\n", pidl->mkid.abID[0]);
|
||||
}
|
||||
#endif
|
||||
IShellFolder *pSF = IsCommonItem(pidl) ? m_SharedDesktopFSFolder : m_DesktopFSFolder;
|
||||
|
||||
Reference in New Issue
Block a user