msvcp: Use fput[w]c in basic_filebuf_char_overflow.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Kevin Puetz 2019-10-03 18:06:42 +02:00 committed by Alexandre Julliard
parent 22969d43f8
commit 925e56acff
1 changed files with 2 additions and 2 deletions

View File

@ -3374,7 +3374,7 @@ int __thiscall basic_filebuf_char_overflow(basic_filebuf_char *this, int c)
return !c;
if(!this->cvt)
return fwrite(&ch, sizeof(char), 1, this->file) ? c : EOF;
return fputc(ch, this->file);
from_next = &ch;
do {
@ -4009,7 +4009,7 @@ unsigned short __thiscall basic_filebuf_wchar_overflow(basic_filebuf_wchar *this
return !c;
if(!this->cvt)
return fwrite(&ch, sizeof(wchar_t), 1, this->file) ? c : WEOF;
return fputwc(ch, this->file);
from_next = &ch;
do {