Skip to content
Permalink
Browse files

- fixed: mode argument was ignored by utf8_fopen() on POSIX platforms

  • Loading branch information...
alexey-lysiuk committed Oct 5, 2019
1 parent f13843c commit 7780f774f9b9ad223fb12f7384b995af3b4edd60
Showing with 2 additions and 2 deletions.
  1. +2 −2 libraries/music_common/fileio.h
@@ -243,7 +243,7 @@ inline std::wstring wideString(const char *filename)
inline FILE* utf8_fopen(const char* filename, const char *mode)
{
#ifndef _WIN32
return fopen(filename, "wb");
return fopen(filename, mode);
#else
auto fn = wideString(filename);
auto mo = wideString(mode);
@@ -376,4 +376,4 @@ class SF2Reader : public FileSystemSoundFontReader



}
}

0 comments on commit 7780f77

Please sign in to comment.
You can’t perform that action at this time.