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:
parent
2e0b1b1114
commit
5d32001b32
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user