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();