fixes #7672
@ -93,7 +93,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";
std::uintmax_t fileSize;