fix for unicode crashes by Dimitri

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2001-12-27 18:06:34 +00:00
parent 2e0b1b1114
commit 5d32001b32

View File

@ -465,7 +465,7 @@ void wxNativeFontInfo::SetUnderlined(bool underlined)
void wxNativeFontInfo::SetFaceName(wxString facename)
{
wxStrncpy(lf.lfFaceName, facename, sizeof(lf.lfFaceName));
wxStrncpy(lf.lfFaceName, facename, sizeof(lf.lfFaceName)/sizeof(WCHAR));
}
void wxNativeFontInfo::SetFamily(wxFontFamily family)