Commit dbe6244f authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

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

parent 904bedb3
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment