From cac9a69ea2619850080db14eaa1635e5a8825282 Mon Sep 17 00:00:00 2001 From: iTrooz Date: Sun, 11 Jun 2023 13:10:04 +0200 Subject: [PATCH] fix: Use Mode::Create instead of Mode::Write when creating crash file (#1134) --- main/source/crash_handlers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/source/crash_handlers.cpp b/main/source/crash_handlers.cpp index 6505ba3b2..8b435d8dc 100644 --- a/main/source/crash_handlers.cpp +++ b/main/source/crash_handlers.cpp @@ -39,7 +39,7 @@ namespace hex::crash { }; for (const auto &path : fs::getDefaultPaths(fs::ImHexPath::Config)) { - wolv::io::File file(path / "crash.json", wolv::io::File::Mode::Write); + wolv::io::File file(path / "crash.json", wolv::io::File::Mode::Create); if (file.isValid()) { file.writeString(crashData.dump(4)); file.close();