X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..2ea60735163ce5ae73b8f089b0a982e65853c9f8:/src/common/txtstrm.cpp?ds=sidebyside diff --git a/src/common/txtstrm.cpp b/src/common/txtstrm.cpp index 830bc985ba..9f9669faa1 100644 --- a/src/common/txtstrm.cpp +++ b/src/common/txtstrm.cpp @@ -76,7 +76,7 @@ wxChar wxTextInputStream::NextChar() return wxEOT; if ( m_conv->ToWChar(wbuf, WXSIZEOF(wbuf), m_lastBytes, inlen + 1) - != wxCONV_FAILED ) + == 1 ) return wbuf[0]; } // there should be no encoding which requires more than nine bytes for one character...