msvcp60: Don't call _Eos on allocation error or 0-length string in basic_string::reserve.
This commit is contained in:
parent
8aa65c79e7
commit
bd610a66c4
|
@ -1714,8 +1714,8 @@ 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ?empty@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE_NXZ */
|
/* ?empty@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE_NXZ */
|
||||||
|
@ -3429,8 +3429,8 @@ 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ?empty@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBE_NXZ */
|
/* ?empty@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBE_NXZ */
|
||||||
|
|
Loading…
Reference in New Issue