Commit 0d3dcd23 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcp90: Fix EOF handling in basic_filebuf<char>::underflow.

parent 3adb3a3c
......@@ -2513,7 +2513,7 @@ int __thiscall basic_filebuf_char_underflow(basic_filebuf_char *this)
return *basic_streambuf_char_gptr(&this->base);
ret = call_basic_filebuf_char_uflow(this);
if(ret)
if(ret != EOF)
ret = call_basic_filebuf_char_pbackfail(this, ret);
return ret;
}
......
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