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 */