From eaf1a1d902a3cd03125452667c50957a73aa237f Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Fri, 20 Jul 2001 12:33:32 +0000 Subject: [PATCH] fixed entities parsing under win32 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/html/htmlpars.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/html/htmlpars.cpp b/src/html/htmlpars.cpp index 06537bd0ce..31bc825d5c 100644 --- a/src/html/htmlpars.cpp +++ b/src/html/htmlpars.cpp @@ -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 -- 2.50.0