[4/5] msvcirt: Implement istream::getline

Piotr Caban piotr.caban at gmail.com
Mon Jul 18 06:23:20 CDT 2016


On 07/18/16 10:13, Iván Matellanes wrote:
>  DEFINE_THISCALL_WRAPPER(istream_getline, 16)
>  istream* __thiscall istream_getline(istream *this, char *str, int count, char delim)
>  {
> -    FIXME("(%p %p %d %c) stub\n", this, str, count, delim);
> -    return this;
> +    this->extract_delim++;
> +    return istream_get_str_delim(this, str, count, (unsigned char) delim);
>  }

You probably need to call ios_lock before updating extract_delim.

Thanks,
Piotr



More information about the wine-devel mailing list