mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 01:13:38 +00:00
Mikhail Denisenko <denisenkom@gmail.com>
- Split the PIDL into current and parent folder, and call GetFolderAttributes only for current folder PIDL. This fixes tons of "ERR: HCR_GetFolderAttributes should be called for simple PIDL's only!" debug log spam messages. See issue #4494 for more details. svn path=/trunk/; revision=41279
This commit is contained in:
parent
30269c48c7
commit
9e9c082bb7
|
@ -172,7 +172,11 @@ bool ShellDirectory::get_path(PTSTR path, size_t path_count) const
|
|||
|
||||
SFGAOF attribs = SFGAO_FILESYSTEM;
|
||||
|
||||
if (FAILED(const_cast<ShellFolder&>(_folder)->GetAttributesOf(1, (LPCITEMIDLIST*)&_pidl, &attribs)))
|
||||
// Split pidl into current and parent folder PIDLs
|
||||
ShellPath pidlParent, pidlFolder;
|
||||
_pidl.split(pidlParent, pidlFolder);
|
||||
|
||||
if (FAILED(const_cast<ShellFolder&>(_folder)->GetAttributesOf(1, (LPCITEMIDLIST*)&pidlFolder, &attribs)))
|
||||
return false;
|
||||
|
||||
if (!(attribs & SFGAO_FILESYSTEM))
|
||||
|
|
Loading…
Reference in a new issue