summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ArchiveEx/dat.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ArchiveEx/dat.cpp b/ArchiveEx/dat.cpp
index 3c026b2..dc0acc9 100644
--- a/ArchiveEx/dat.cpp
+++ b/ArchiveEx/dat.cpp
@@ -201,9 +201,9 @@ try {
if (0 > length)
throw ExtractError();
std::unique_ptr<std::uint8_t[]> buf{tmp};
- std::error_code ec;
- const bool created = fs::create_directories(path.parent_path(), ec);
- if (!created)
+ std::error_code err;
+ fs::create_directories(path.parent_path(), err);
+ if (err)
throw ExtractError();
std::ofstream file{path};
if (!file.is_open())