Skip to content

Commit

Permalink
prevent the overwrite of existing mpq files (requires C++17)
Browse files Browse the repository at this point in the history
fixes #7672
  • Loading branch information
pionere authored and StephenCWills committed Jan 25, 2025
1 parent f793d33 commit 1af8e75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/mpq/mpq_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1af8e75

Please sign in to comment.