From 3a7a1d7125378aaca255149792c0d3b1ce39193e Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Sun, 18 Nov 2012 21:44:17 +0100 Subject: [PATCH] msvcp60: Fixed basic_string::_Tidy implementation. --- dlls/msvcp60/string.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msvcp60/string.c b/dlls/msvcp60/string.c index 2b890fa3ec0..5b0b358d658 100644 --- a/dlls/msvcp60/string.c +++ b/dlls/msvcp60/string.c @@ -166,7 +166,7 @@ void __thiscall basic_string_char__Tidy(basic_string_char *this, MSVCP_bool buil if(!this->ptr || !built); else if(!this->ptr[-1] || (unsigned char)this->ptr[-1]==FROZEN) - MSVCP_allocator_char_deallocate(NULL, this->ptr, this->res+2); + MSVCP_allocator_char_deallocate(NULL, this->ptr-1, this->res+2); else this->ptr[-1]--; @@ -1882,7 +1882,7 @@ void __thiscall basic_string_wchar__Tidy(basic_string_wchar *this, MSVCP_bool bu if(!this->ptr || !built); else if(!this->ptr[-1] || (unsigned short)this->ptr[-1]==FROZEN) - MSVCP_allocator_wchar_deallocate(NULL, this->ptr, this->res+2); + MSVCP_allocator_wchar_deallocate(NULL, this->ptr-1, this->res+2); else this->ptr[-1]--;