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:
@@ -465,7 +465,7 @@ void wxNativeFontInfo::SetUnderlined(bool underlined)
|
|||||||
|
|
||||||
void wxNativeFontInfo::SetFaceName(wxString facename)
|
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)
|
void wxNativeFontInfo::SetFamily(wxFontFamily family)
|
||||||
|
Reference in New Issue
Block a user