Commit 1fae72e7 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Don't add '\r' character in fputws function.

write is responsible for adding '\r' characters, don't do it twice.
parent a8c2ae17
......@@ -3882,8 +3882,7 @@ int CDECL MSVCRT_fputws(const MSVCRT_wchar_t *s, MSVCRT_FILE* file)
return ret;
}
for (i=0; i<len; i++) {
if (((s[i] == '\n') && (MSVCRT_fputc('\r', file) == MSVCRT_EOF))
|| MSVCRT_fputwc(s[i], file) == MSVCRT_WEOF) {
if(MSVCRT_fputwc(s[i], file) == MSVCRT_WEOF) {
MSVCRT__unlock_file(file);
return MSVCRT_WEOF;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment