diff options
| author | Stefan Boberg <[email protected]> | 2021-06-18 15:41:44 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-06-18 15:41:44 +0200 |
| commit | e0cd2db8521aeffbfdd8c5fcb27c651b018ddd4b (patch) | |
| tree | e1bb50dab37d6fa8e507a00d9612153dc08cc927 /zencore/filesystem.cpp | |
| parent | Made LoadCompactBinaryObject handle IoBuffer lifetime correctly (diff) | |
| download | zen-e0cd2db8521aeffbfdd8c5fcb27c651b018ddd4b.tar.xz zen-e0cd2db8521aeffbfdd8c5fcb27c651b018ddd4b.zip | |
Fixed FileSystemTraversal::TraverseFileSystem error reporting issue
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) { |