diff options
author | Chris Robinson <chris.kcat@gmail.com> | 2019-10-08 00:21:21 -0700 |
---|---|---|
committer | Chris Robinson <chris.kcat@gmail.com> | 2019-10-08 00:21:21 -0700 |
commit | f4bc3d7ab22b90f725b7e80fbf2cb879b4729ed8 (patch) | |
tree | 3e1c479db7430f537603f32b33ac8de4607334dd /alc/helpers.cpp | |
parent | 52a003e9bb7c870f26436b38e62edc96385805dc (diff) |
Improve logging for Windows
Diffstat (limited to 'alc/helpers.cpp')
-rw-r--r-- | alc/helpers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/helpers.cpp b/alc/helpers.cpp index 2d532db1..0e2dc067 100644 --- a/alc/helpers.cpp +++ b/alc/helpers.cpp @@ -305,7 +305,7 @@ void al_print(FILE *logfile, const char *fmt, ...) va_end(args); std::wstring wstr{utf8_to_wstr(str)}; - fprintf(logfile, "%ls", wstr.c_str()); + fputws(wstr.c_str(), logfile); fflush(logfile); } |