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

write is responsible for adding '\r' characters, don't do it twice.
This commit is contained in:
Piotr Caban 2013-01-11 11:19:19 +01:00 committed by Alexandre Julliard
parent a8c2ae1751
commit 1fae72e759

View file

@ -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;
}