<div dir="ltr">Hi Piotr, Arkadiusz,<div><br></div><div>Wouldn't it be better to have the out of memory message be WARN or ERR?</div><div><br></div><div>Kind regards,</div><div>Gijs</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op wo 2 sep. 2020 om 18:31 schreef Piotr Caban <<a href="mailto:piotr@codeweavers.com">piotr@codeweavers.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 9/2/20 6:13 PM, Arkadiusz Hiler wrote:<br>
> +/* ?attach@ifstream@@QAEXH@Z */<br>
> +/* ?attach@ifstream@@QEAAXH@Z */<br>
> +DEFINE_THISCALL_WRAPPER(ifstream_attach, 8)<br>
> +void __thiscall ifstream_attach(istream *this, filedesc fd)<br>
> +{<br>
> +    TRACE("(%p %d)\n", this, fd);<br>
> +    if (filebuf_attach(ifstream_rdbuf(this), fd) == NULL)<br>
> +        ios_clear(istream_get_ios(this), IOSTATE_failbit);<br>
The function should add failbit flag to current state (it shouldn't e.g. <br>
clear eof state). The same applies to all cases where failbit is set.<br>
<br>
Thanks,<br>
Piotr<br>
<br>
</blockquote></div>