Commit 0e6171f6 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcp90: Fixed basic_stringbuf_wchar_overflow implementation.

parent c8f4ca31
...@@ -4133,7 +4133,7 @@ unsigned short __thiscall basic_stringbuf_wchar_overflow(basic_stringbuf_wchar * ...@@ -4133,7 +4133,7 @@ unsigned short __thiscall basic_stringbuf_wchar_overflow(basic_stringbuf_wchar *
this->state |= STRINGBUF_allocated; this->state |= STRINGBUF_allocated;
}else { }else {
ptr = basic_streambuf_wchar_eback(&this->base); ptr = basic_streambuf_wchar_eback(&this->base);
memcpy(buf, ptr, oldsize); memcpy(buf, ptr, oldsize*sizeof(wchar_t));
this->seekhigh = buf+(this->seekhigh-ptr); this->seekhigh = buf+(this->seekhigh-ptr);
basic_streambuf_wchar_setp_next(&this->base, buf, basic_streambuf_wchar_setp_next(&this->base, buf,
......
...@@ -4123,7 +4123,7 @@ unsigned short __thiscall basic_stringbuf_wchar_overflow(basic_stringbuf_wchar * ...@@ -4123,7 +4123,7 @@ unsigned short __thiscall basic_stringbuf_wchar_overflow(basic_stringbuf_wchar *
this->state |= STRINGBUF_allocated; this->state |= STRINGBUF_allocated;
}else { }else {
ptr = basic_streambuf_wchar_eback(&this->base); ptr = basic_streambuf_wchar_eback(&this->base);
memcpy(buf, ptr, oldsize); memcpy(buf, ptr, oldsize*sizeof(wchar_t));
this->seekhigh = buf+(this->seekhigh-ptr); this->seekhigh = buf+(this->seekhigh-ptr);
basic_streambuf_wchar_setp_next(&this->base, buf, basic_streambuf_wchar_setp_next(&this->base, buf,
......
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