]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/txtstrm.cpp
switching to LaunchServices implementation, fixes #11508
[wxWidgets.git] / src / common / txtstrm.cpp
index 830bc985ba2f83b869e463466d57498cfaeb31df..9f9669faa184ec5e3b0ee34b33cec0bd67241ae5 100644 (file)
@@ -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...