mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:02:58 +00:00
[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. svn path=/trunk/; revision=63914
This commit is contained in:
parent
ddcf6ee167
commit
ce2f155e05
3 changed files with 10 additions and 0 deletions
|
@ -313,8 +313,10 @@ void ShellDirectory::read_directory(int scan_flags)
|
||||||
if (GetFileInformationByHandle(hFile, &entry->_bhfi))
|
if (GetFileInformationByHandle(hFile, &entry->_bhfi))
|
||||||
entry->_bhfi_valid = true;
|
entry->_bhfi_valid = true;
|
||||||
|
|
||||||
|
#ifdef BACKUP_READ_IMPLEMENTED
|
||||||
if (ScanNTFSStreams(entry, hFile))
|
if (ScanNTFSStreams(entry, hFile))
|
||||||
entry->_scanned = true; // There exist named NTFS sub-streams in this file.
|
entry->_scanned = true; // There exist named NTFS sub-streams in this file.
|
||||||
|
#endif
|
||||||
|
|
||||||
CloseHandle(hFile);
|
CloseHandle(hFile);
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
//#include "winfs.h"
|
//#include "winfs.h"
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef BACKUP_READ_IMPLEMENTED
|
||||||
int ScanNTFSStreams(Entry* entry, HANDLE hFile)
|
int ScanNTFSStreams(Entry* entry, HANDLE hFile)
|
||||||
{
|
{
|
||||||
PVOID ctx = 0;
|
PVOID ctx = 0;
|
||||||
|
@ -116,6 +117,7 @@ int ScanNTFSStreams(Entry* entry, HANDLE hFile)
|
||||||
|
|
||||||
return cnt;
|
return cnt;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
void WinDirectory::read_directory(int scan_flags)
|
void WinDirectory::read_directory(int scan_flags)
|
||||||
|
@ -167,8 +169,10 @@ void WinDirectory::read_directory(int scan_flags)
|
||||||
if (GetFileInformationByHandle(hFile, &entry->_bhfi))
|
if (GetFileInformationByHandle(hFile, &entry->_bhfi))
|
||||||
entry->_bhfi_valid = true;
|
entry->_bhfi_valid = true;
|
||||||
|
|
||||||
|
#ifdef BACKUP_READ_IMPLEMENTED
|
||||||
if (ScanNTFSStreams(entry, hFile))
|
if (ScanNTFSStreams(entry, hFile))
|
||||||
entry->_scanned = true; // There exist named NTFS sub-streams in this file.
|
entry->_scanned = true; // There exist named NTFS sub-streams in this file.
|
||||||
|
#endif
|
||||||
|
|
||||||
CloseHandle(hFile);
|
CloseHandle(hFile);
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,6 +25,8 @@
|
||||||
// Martin Fuchs, 23.07.2003
|
// Martin Fuchs, 23.07.2003
|
||||||
//
|
//
|
||||||
|
|
||||||
|
/* Enable this when the BackupRead API is implemented */
|
||||||
|
// #define BACKUP_READ_IMPLEMENTED
|
||||||
|
|
||||||
/// Windows file system file-entry
|
/// Windows file system file-entry
|
||||||
struct WinEntry : public Entry
|
struct WinEntry : public Entry
|
||||||
|
@ -65,4 +67,6 @@ struct WinDirectory : public WinEntry, public Directory
|
||||||
virtual Entry* find_entry(const void*);
|
virtual Entry* find_entry(const void*);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef BACKUP_READ_IMPLEMENTED
|
||||||
extern int ScanNTFSStreams(Entry* entry, HANDLE hFile);
|
extern int ScanNTFSStreams(Entry* entry, HANDLE hFile);
|
||||||
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue