Commit 75bcbece authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcp90: Fix basic_istream<wchar>::read implementation.

parent 1a130126
......@@ -7156,7 +7156,7 @@ static basic_istream_char* basic_istream_char__Read_s(basic_istream_char *this,
DEFINE_THISCALL_WRAPPER(basic_istream_char_read, 12)
basic_istream_char* __thiscall basic_istream_char_read(basic_istream_char *this, char *str, streamsize count)
{
return basic_istream_char__Read_s(this, str, count, count);
return basic_istream_char__Read_s(this, str, -1, count);
}
/* ?_Readsome_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHPADIH@Z */
......@@ -8397,7 +8397,7 @@ static basic_istream_wchar* basic_istream_wchar__Read_s(basic_istream_wchar *thi
DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read, 12)
basic_istream_wchar* __thiscall basic_istream_wchar_read(basic_istream_wchar *this, wchar_t *str, streamsize count)
{
return basic_istream_wchar__Read_s(this, str, count, count);
return basic_istream_wchar__Read_s(this, str, -1, count);
}
/* ?_Readsome_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEHPA_WIH@Z */
......
......@@ -8111,7 +8111,7 @@ DEFINE_THISCALL_WRAPPER(basic_istream_char_read, 12)
#endif
basic_istream_char* __thiscall basic_istream_char_read(basic_istream_char *this, char *str, streamsize count)
{
return basic_istream_char__Read_s(this, str, count, count);
return basic_istream_char__Read_s(this, str, -1, count);
}
/* ?_Readsome_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHPADIH@Z */
......@@ -9418,7 +9418,7 @@ DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read, 12)
#endif
basic_istream_wchar* __thiscall basic_istream_wchar_read(basic_istream_wchar *this, wchar_t *str, streamsize count)
{
return basic_istream_wchar__Read_s(this, str, count, count);
return basic_istream_wchar__Read_s(this, str, -1, count);
}
/* ?_Readsome_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEHPA_WIH@Z */
......
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