Skip to content

Commit

Permalink
Allow Reparse Processing For Root Directory
Browse files Browse the repository at this point in the history
- In the event that the base directory is a volume mounted in a folder,
it is advantageous to process a reparse point if it is the base
directory.
  • Loading branch information
NoMoreFood committed May 8, 2017
1 parent 9e24de4 commit e0b75d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ void AnalzyingQueue()
IO_STATUS_BLOCK IoStatusBlock;
NTSTATUS Status = NtOpenFile(&hFindFile, FILE_LIST_DIRECTORY | SYNCHRONIZE,
&oAttributes, &IoStatusBlock, FILE_SHARE_READ | FILE_SHARE_WRITE,
FILE_DIRECTORY_FILE | FILE_SYNCHRONOUS_IO_NONALERT |
FILE_OPEN_FOR_BACKUP_INTENT | FILE_OPEN_REPARSE_POINT);
FILE_DIRECTORY_FILE | FILE_SYNCHRONOUS_IO_NONALERT | FILE_OPEN_FOR_BACKUP_INTENT |
((oEntry.IsRoot) ? 0 : FILE_OPEN_REPARSE_POINT));

if (Status == STATUS_ACCESS_DENIED)
{
Expand Down

0 comments on commit e0b75d6

Please sign in to comment.