http://bugs.winehq.org/show_bug.cgi?id=31089
--- Comment #3 from Piotr Caban piotr.caban@gmail.com 2012-07-06 05:15:27 CDT --- Created attachment 40886 --> http://bugs.winehq.org/attachment.cgi?id=40886 Fixed EOF detection in basic_streambuf_char__Xsgetn_s function
With all 3 patches applied (one sent to wine and two attached here) the demo works for me.