Missing dereference caused wrong wxString ctor to be used, leading to

memory errors


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2006-06-08 08:09:27 +00:00
parent ed2fbeb835
commit da452b9eec

View File

@ -385,7 +385,7 @@ static wxString CharToString(wxMBConv *conv,
const wxWCharBuffer wbuf(
wxConvUTF8.cMB2WC(s, len == wxSTRING_MAXLEN ? wxNO_LEN : len, NULL));
return wxString(wbuf, conv);
return wxString(wbuf, *conv);
}
else // already in UTF-8, no conversion needed
{