msvcirt: Don't fail in streambuf_xsputn on 0xff character.

This commit is contained in:
Piotr Caban 2023-01-05 19:21:35 +01:00 committed by Alexandre Julliard
parent 904bedb3e9
commit dbe6244f10

View file

@ -820,7 +820,7 @@ int __thiscall streambuf_xsputn(streambuf *this, const char *data, int length)
while (copied < length) {
if (this->unbuffered || this->pptr == this->epptr) {
if (call_streambuf_overflow(this, data[copied]) == EOF)
if (call_streambuf_overflow(this, (unsigned char)data[copied]) == EOF)
break;
copied++;
} else {