mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +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
1 changed files with 1 additions and 2 deletions
|
@ -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…
Reference in a new issue