mirror of
https://github.com/reactos/wine.git
synced 2025-02-28 08:46:31 +00:00
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:
parent
a8c2ae1751
commit
1fae72e759
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user