[03/10] msvcirt: Implement ostream::flush
Piotr Caban
piotr.caban at gmail.com
Mon Jun 6 08:37:12 CDT 2016
On 06/06/16 13:52, Iván Matellanes wrote:
> DEFINE_THISCALL_WRAPPER(ostream_flush, 4)
> ostream* __thiscall ostream_flush(ostream *this)
> {
> - FIXME("(%p) stub\n", this);
> + ios *base = ostream_get_ios(this);
> +
> + TRACE("(%p)\n", this);
> +
> + if (call_streambuf_sync(base->sb) == EOF)
> + ios_clear(base, base->state | IOSTATE_failbit);
This function should be thread-safe. Please use ios_lockbuf and
ios_unlockbuf.
Thanks,
Piotr
More information about the wine-devel
mailing list