mirror of
https://github.com/nu774/fdkaac.git
synced 2025-01-15 16:26:15 +01:00
win32compat: fix aacenc_printf() not to write junk characters
This commit is contained in:
parent
70554c0791
commit
a79a11ef99
@ -157,7 +157,7 @@ int aacenc_fprintf(FILE *fp, const char *fmt, ...)
|
||||
codepage_decode_wchar(CP_UTF8, s, &ws);
|
||||
free(s);
|
||||
fflush(fp);
|
||||
WriteConsoleW(fh, ws, cnt, &nw, 0);
|
||||
WriteConsoleW(fh, ws, wcslen(ws), &nw, 0);
|
||||
free(ws);
|
||||
}
|
||||
return cnt;
|
||||
|
Loading…
Reference in New Issue
Block a user