Commit bd610a66 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcp60: Don't call _Eos on allocation error or 0-length string in basic_string::reserve.

parent 8aa65c79
...@@ -1714,7 +1714,7 @@ void __thiscall basic_string_char_reserve(basic_string_char *this, MSVCP_size_t ...@@ -1714,7 +1714,7 @@ void __thiscall basic_string_char_reserve(basic_string_char *this, MSVCP_size_t
if(len > size) if(len > size)
return; return;
basic_string_char__Grow(this, size, FALSE); if(basic_string_char__Grow(this, size, FALSE))
basic_string_char__Eos(this, len); basic_string_char__Eos(this, len);
} }
...@@ -3429,7 +3429,7 @@ void __thiscall basic_string_wchar_reserve(basic_string_wchar *this, MSVCP_size_ ...@@ -3429,7 +3429,7 @@ void __thiscall basic_string_wchar_reserve(basic_string_wchar *this, MSVCP_size_
if(len > size) if(len > size)
return; return;
basic_string_wchar__Grow(this, size, FALSE); if(basic_string_wchar__Grow(this, size, FALSE))
basic_string_wchar__Eos(this, len); basic_string_wchar__Eos(this, len);
} }
......
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