diff options
Diffstat (limited to 'zencore/filesystem.cpp')
| -rw-r--r-- | zencore/filesystem.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/zencore/filesystem.cpp b/zencore/filesystem.cpp index cb806b276..c4c4a6ff0 100644 --- a/zencore/filesystem.cpp +++ b/zencore/filesystem.cpp @@ -517,7 +517,10 @@ FileSystemTraversal::TraverseFileSystem(const std::filesystem::path& RootDir, Tr OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS); - zen::ThrowSystemException(hRes, "Failed to open handle to volume root"); + if (FAILED(hRes)) + { + zen::ThrowSystemException(hRes, "Failed to open handle to volume root"); + } while (Continue) { |