git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53891
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
for ( const wchar_t *wp = src; ; wp++ )
{
for ( const wchar_t *wp = src; ; wp++ )
{
- if ( !(srcLen == wxNO_LEN ? *wp : srcLen--) )
+ if ( !(srcLen == wxNO_LEN ? *wp : srcLen) )
{
// all done successfully, just add the trailing NULL if we are not
// using explicit length
{
// all done successfully, just add the trailing NULL if we are not
// using explicit length
+ if ( srcLen != wxNO_LEN )
+ srcLen--;
wxUint32 code;
#ifdef WC_UTF16
wxUint32 code;
#ifdef WC_UTF16