]> git.saurik.com Git - wxWidgets.git/commit
Check the result of ToWChar() call in wxTextInputStream::NextChar() better.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Jan 2010 10:13:33 +0000 (10:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Jan 2010 10:13:33 +0000 (10:13 +0000)
commit32dd8aa22bf9a26dc3f985e8ddd148e87fd06d9d
treefbaf9317f45016767e8b9c0a7aa51a38c9fc8e64
parent8e7262fca7520f73e711981019c6407ee84e5e26
Check the result of ToWChar() call in wxTextInputStream::NextChar() better.

The logic in this function depends on ToWChar() working correctly so check
that it doesn't return obviously wrong results, e.g. 0 output length for
non-empty input. This was mostly done to detect the problem in wxConvAuto
currently but it could also be useful with user-defined conversions and
shouldn't have a big performance effect on wxTextInputStream so leave these
checks in to facilitate debugging in the future.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63244 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/txtstrm.cpp