diff --git a/Main.cpp b/Main.cpp index 673372e..4d02ef8 100644 --- a/Main.cpp +++ b/Main.cpp @@ -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) {