X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/481c879b8e9e4318e136eb8dd538fe793fd4eac5..a95cdab85c5e5abb2d40e594663f120db3675bb4:/src/html/htmlpars.cpp 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