Piotr Caban : msvcp60: Fixed basic_string::_Tidy implementation.
Alexandre Julliard
julliard at winehq.org
Mon Nov 19 13:38:38 CST 2012
Module: wine
Branch: master
Commit: 3a7a1d7125378aaca255149792c0d3b1ce39193e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3a7a1d7125378aaca255149792c0d3b1ce39193e
Author: Piotr Caban <piotr at codeweavers.com>
Date: Sun Nov 18 21:44:17 2012 +0100
msvcp60: Fixed basic_string::_Tidy implementation.
---
dlls/msvcp60/string.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msvcp60/string.c b/dlls/msvcp60/string.c
index 2b890fa..5b0b358 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]--;
More information about the wine-cvs
mailing list