[EXPLORER_OLD]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Thu, 21 Aug 2014 19:18:25 +0000 (19:18 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Thu, 21 Aug 2014 19:18:25 +0000 (19:18 +0000)
Disable ScanNTFSStreams calls because this function exclusively calls BackupRead that is not implemented on ReactOS, and as a consequence makes lots of debug spam when browsing the start (sub-)menus.

svn path=/trunk/; revision=63914

reactos/base/shell/explorer/shell/shellfs.cpp
reactos/base/shell/explorer/shell/winfs.cpp
reactos/base/shell/explorer/shell/winfs.h

index 1243a0d..6c243e4 100644 (file)
@@ -313,8 +313,10 @@ void ShellDirectory::read_directory(int scan_flags)
                                                if (GetFileInformationByHandle(hFile, &entry->_bhfi))
                                                        entry->_bhfi_valid = true;
 
+#ifdef BACKUP_READ_IMPLEMENTED
                                                if (ScanNTFSStreams(entry, hFile))
                                                        entry->_scanned = true; // There exist named NTFS sub-streams in this file.
+#endif
 
                                                CloseHandle(hFile);
                                        }
index b3ed576..6415d28 100644 (file)
@@ -33,6 +33,7 @@
 //#include "winfs.h"
 
 
+#ifdef BACKUP_READ_IMPLEMENTED
 int ScanNTFSStreams(Entry* entry, HANDLE hFile)
 {
        PVOID ctx = 0;
@@ -116,6 +117,7 @@ int ScanNTFSStreams(Entry* entry, HANDLE hFile)
 
        return cnt;
 }
+#endif
 
 
 void WinDirectory::read_directory(int scan_flags)
@@ -167,8 +169,10 @@ void WinDirectory::read_directory(int scan_flags)
                                        if (GetFileInformationByHandle(hFile, &entry->_bhfi))
                                                entry->_bhfi_valid = true;
 
+#ifdef BACKUP_READ_IMPLEMENTED
                                        if (ScanNTFSStreams(entry, hFile))
                                                entry->_scanned = true; // There exist named NTFS sub-streams in this file.
+#endif
 
                                        CloseHandle(hFile);
                                }
index b588035..893b49b 100644 (file)
@@ -25,6 +25,8 @@
  // Martin Fuchs, 23.07.2003
  //
 
+/* Enable this when the BackupRead API is implemented */
+// #define BACKUP_READ_IMPLEMENTED
 
  /// Windows file system file-entry
 struct WinEntry : public Entry
@@ -65,4 +67,6 @@ struct WinDirectory : public WinEntry, public Directory
        virtual Entry* find_entry(const void*);
 };
 
+#ifdef BACKUP_READ_IMPLEMENTED
 extern int ScanNTFSStreams(Entry* entry, HANDLE hFile);
+#endif