fixed weird error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22437 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -356,7 +356,7 @@ inline static wxString CharToString(wxMBConv *conv,
|
|||||||
if ( conv )
|
if ( conv )
|
||||||
{
|
{
|
||||||
size_t nLen = (len != wxSTRING_MAXLEN) ? len :
|
size_t nLen = (len != wxSTRING_MAXLEN) ? len :
|
||||||
nLen = wxConvUTF8.MB2WC((wchar_t*) NULL, s, 0);
|
wxConvUTF8.MB2WC((wchar_t*) NULL, s, 0);
|
||||||
|
|
||||||
wchar_t *buf = new wchar_t[nLen+1];
|
wchar_t *buf = new wchar_t[nLen+1];
|
||||||
wxConvUTF8.MB2WC(buf, s, nLen);
|
wxConvUTF8.MB2WC(buf, s, nLen);
|
||||||
|
Reference in New Issue
Block a user