mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Mikhail Denisenko <[email protected]>
- 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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user