From 420a46f68998bcca86cd7febc68b46df5ed76e24 Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 9 Jul 2012 13:46:14 -0300 Subject: [PATCH] Fix issue #44 - Problems browsing files when "hide extensions for known file types" is enable. As IShellFolder::GetAttributesOf() method returns attributes that are common to all of the specified items, we cannot request attributes for several items at the same time, so we've to request them one by one for each item. --- src/file_system.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/file_system.cpp b/src/file_system.cpp index 079166e83..3aab4a73d 100644 --- a/src/file_system.cpp +++ b/src/file_system.cpp @@ -482,13 +482,9 @@ const FileItemList& FileItem::getChildren() while (pEnum->Next(256, itempidl, &fetched) == S_OK && fetched > 0) { /* request the SFGAO_FOLDER attribute to know what of the item is a folder */ - for (c=0; cGetAttributesOf(fetched, - (LPCITEMIDLIST *)itempidl, attribs) != S_OK) { - for (c=0; cGetAttributesOf(1, (LPCITEMIDLIST *)itempidl, attribs+c); } /* generate the FileItems */