Calculate length explicitly (for wxUSE_STL == 1).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
3c2544bb70
commit
088ab98499
@ -370,7 +370,7 @@ inline static wxString CharToString(wxMBConv *conv,
|
|||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return wxString(s, len);
|
return wxString(s, len != wxSTRING_MAXLEN ? len : strlen(s));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user