mirror of
https://github.com/reactos/reactos.git
synced 2025-06-10 04:14:53 +00:00
[SHELL32]
- SHOpenFolderAndSelectItems: Take into account buggy applications like firefox that like to pass full pidls in a PCUITEMID_CHILD_ARRAY. svn path=/trunk/; revision=73160
This commit is contained in:
parent
b183748a87
commit
f4a1861aab
1 changed files with 13 additions and 1 deletions
|
@ -528,9 +528,21 @@ SHOpenFolderAndSelectItems(LPITEMIDLIST pidlFolder,
|
||||||
ERR("SHOpenFolderAndSelectItems() is hackplemented\n");
|
ERR("SHOpenFolderAndSelectItems() is hackplemented\n");
|
||||||
PCIDLIST_ABSOLUTE pidlItem;
|
PCIDLIST_ABSOLUTE pidlItem;
|
||||||
if (cidl)
|
if (cidl)
|
||||||
pidlItem = ILCombine(pidlFolder, apidl[0]);
|
{
|
||||||
|
/* Firefox sends a full pidl here dispite the fact it is a PCUITEMID_CHILD_ARRAY -_- */
|
||||||
|
if (ILGetNext(apidl[0]) != NULL)
|
||||||
|
{
|
||||||
|
pidlItem = apidl[0];
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
pidlItem = ILCombine(pidlFolder, apidl[0]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
pidlItem = pidlFolder;
|
pidlItem = pidlFolder;
|
||||||
|
}
|
||||||
|
|
||||||
CComPtr<IShellFolder> psfDesktop;
|
CComPtr<IShellFolder> psfDesktop;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue