Module: wine Branch: master Commit: dbe6244f103aaef9f0c32b8008a2e1748b686e73 URL: https://gitlab.winehq.org/wine/wine/-/commit/dbe6244f103aaef9f0c32b8008a2e17...
Author: Piotr Caban piotr@codeweavers.com Date: Thu Jan 5 19:21:35 2023 +0100
msvcirt: Don't fail in streambuf_xsputn on 0xff character.
---
dlls/msvcirt/msvcirt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msvcirt/msvcirt.c b/dlls/msvcirt/msvcirt.c index 35f532425d3..9ad0f45cbed 100644 --- a/dlls/msvcirt/msvcirt.c +++ b/dlls/msvcirt/msvcirt.c @@ -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 {