Author: hbelusca
Date: Thu Aug 21 19:18:25 2014
New Revision: 63914

URL: http://svn.reactos.org/svn/reactos?rev=63914&view=rev
Log:
[EXPLORER_OLD]
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.

Modified:
    trunk/reactos/base/shell/explorer/shell/shellfs.cpp
    trunk/reactos/base/shell/explorer/shell/winfs.cpp
    trunk/reactos/base/shell/explorer/shell/winfs.h

Modified: trunk/reactos/base/shell/explorer/shell/shellfs.cpp
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/shell/shellfs.cpp?rev=63914&r1=63913&r2=63914&view=diff
==============================================================================
--- trunk/reactos/base/shell/explorer/shell/shellfs.cpp [iso-8859-1] (original)
+++ trunk/reactos/base/shell/explorer/shell/shellfs.cpp [iso-8859-1] Thu Aug 21 
19:18:25 2014
@@ -313,8 +313,10 @@
                                                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);
                                        }

Modified: trunk/reactos/base/shell/explorer/shell/winfs.cpp
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/shell/winfs.cpp?rev=63914&r1=63913&r2=63914&view=diff
==============================================================================
--- trunk/reactos/base/shell/explorer/shell/winfs.cpp   [iso-8859-1] (original)
+++ trunk/reactos/base/shell/explorer/shell/winfs.cpp   [iso-8859-1] Thu Aug 21 
19:18:25 2014
@@ -33,6 +33,7 @@
 //#include "winfs.h"
 
 
+#ifdef BACKUP_READ_IMPLEMENTED
 int ScanNTFSStreams(Entry* entry, HANDLE hFile)
 {
        PVOID ctx = 0;
@@ -116,6 +117,7 @@
 
        return cnt;
 }
+#endif
 
 
 void WinDirectory::read_directory(int scan_flags)
@@ -167,8 +169,10 @@
                                        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);
                                }

Modified: trunk/reactos/base/shell/explorer/shell/winfs.h
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/shell/winfs.h?rev=63914&r1=63913&r2=63914&view=diff
==============================================================================
--- trunk/reactos/base/shell/explorer/shell/winfs.h     [iso-8859-1] (original)
+++ trunk/reactos/base/shell/explorer/shell/winfs.h     [iso-8859-1] Thu Aug 21 
19:18:25 2014
@@ -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 @@
        virtual Entry* find_entry(const void*);
 };
 
+#ifdef BACKUP_READ_IMPLEMENTED
 extern int ScanNTFSStreams(Entry* entry, HANDLE hFile);
+#endif


Reply via email to