From e0cd2db8521aeffbfdd8c5fcb27c651b018ddd4b Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Fri, 18 Jun 2021 15:41:44 +0200 Subject: Fixed FileSystemTraversal::TraverseFileSystem error reporting issue --- zencore/filesystem.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'zencore/filesystem.cpp') 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) { -- cgit v1.2.3