mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
win_utf8_io.c: Use fputws instead of fwprintf.
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
This commit is contained in:
committed by
Erik de Castro Lopo
parent
b373c8ecb4
commit
97bcc6f51a
@@ -162,7 +162,7 @@ int print_console(FILE *stream, const wchar_t *text, size_t len)
|
||||
if (WriteConsoleW(hErr, text, len, &out, NULL) == 0) return -1;
|
||||
return out;
|
||||
} else {
|
||||
int ret = fwprintf(stream, L"%s", text);
|
||||
int ret = fputws(text, stream);
|
||||
if (ret < 0) return ret;
|
||||
return len;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user