diff --git a/Source/mpq/mpq_writer.cpp b/Source/mpq/mpq_writer.cpp index 1d3ab8b50..111e3eb89 100644 --- a/Source/mpq/mpq_writer.cpp +++ b/Source/mpq/mpq_writer.cpp @@ -92,7 +92,7 @@ MpqWriter::MpqWriter(const char *path) LogVerbose("Opening {}", path); std::string error; bool exists = FileExists(path); - const char *mode = "wb"; + const char *mode = "wbx"; if (exists) { mode = "r+b"; if (!GetFileSize(path, &size_)) {