mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-13 07:57:58 +00:00
- fixed: mode argument was ignored by utf8_fopen() on POSIX platforms
This commit is contained in:
parent
f13843c8ca
commit
7780f774f9
1 changed files with 2 additions and 2 deletions
|
@ -243,7 +243,7 @@ inline std::wstring wideString(const char *filename)
|
||||||
inline FILE* utf8_fopen(const char* filename, const char *mode)
|
inline FILE* utf8_fopen(const char* filename, const char *mode)
|
||||||
{
|
{
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
return fopen(filename, "wb");
|
return fopen(filename, mode);
|
||||||
#else
|
#else
|
||||||
auto fn = wideString(filename);
|
auto fn = wideString(filename);
|
||||||
auto mo = wideString(mode);
|
auto mo = wideString(mode);
|
||||||
|
|
Loading…
Reference in a new issue