Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Open exclusive read with correct binary mode on non-Windows platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Solokiller committed Jul 22, 2021
1 parent 235c097 commit fe9b04b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/hlam/utility/IOUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ FILE* utf8_exclusive_read_fopen(const char* filename, bool asBinary)

return file;
#else
return utf8_fopen(filename, "r");
return utf8_fopen(filename, asBinary ? "r" : "rb");
#endif
}

0 comments on commit fe9b04b

Please sign in to comment.