]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed entities parsing under win32
authorVáclav Slavík <vslavik@fastmail.fm>
Fri, 20 Jul 2001 12:33:32 +0000 (12:33 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Fri, 20 Jul 2001 12:33:32 +0000 (12:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/htmlpars.cpp

index 06537bd0cebdcabbe797dabec604bcdfb77db835..31bc825d5cea2c77889cb2ccd1f9671338543885 100644 (file)
@@ -488,7 +488,7 @@ wxChar wxHtmlEntitiesParser::GetCharForCode(unsigned code)
     wbuf[0] = (wchar_t)code;
     wbuf[1] = 0;
     wxMBConv *conv = m_conv ? m_conv : &wxConvLocal;
-    if (conv->WC2MB(buf, wbuf, 1) == (size_t)-1)
+    if (conv->WC2MB(buf, wbuf, 2) == (size_t)-1)
         return '?';
     return buf[0];
 #else