aboutsummaryrefslogtreecommitdiff
path: root/zencore/filesystem.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-06-18 15:41:44 +0200
committerStefan Boberg <[email protected]>2021-06-18 15:41:44 +0200
commite0cd2db8521aeffbfdd8c5fcb27c651b018ddd4b (patch)
treee1bb50dab37d6fa8e507a00d9612153dc08cc927 /zencore/filesystem.cpp
parentMade LoadCompactBinaryObject handle IoBuffer lifetime correctly (diff)
downloadzen-e0cd2db8521aeffbfdd8c5fcb27c651b018ddd4b.tar.xz
zen-e0cd2db8521aeffbfdd8c5fcb27c651b018ddd4b.zip
Fixed FileSystemTraversal::TraverseFileSystem error reporting issue
Diffstat (limited to 'zencore/filesystem.cpp')
-rw-r--r--zencore/filesystem.cpp5
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)
{