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:
parent
ed2fbeb835
commit
da452b9eec
@ -385,7 +385,7 @@ static wxString CharToString(wxMBConv *conv,
|
|||||||
const wxWCharBuffer wbuf(
|
const wxWCharBuffer wbuf(
|
||||||
wxConvUTF8.cMB2WC(s, len == wxSTRING_MAXLEN ? wxNO_LEN : len, NULL));
|
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
|
else // already in UTF-8, no conversion needed
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user