]> git.saurik.com Git - wxWidgets.git/commitdiff
Idiot I am; my previous commit certainly broke non-Unicode builds
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 27 Dec 2001 23:16:18 +0000 (23:16 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 27 Dec 2001 23:16:18 +0000 (23:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/font.cpp

index 56778e8b8b24e87c900cb3a7b9d296e717b92bcd..27c2d4b90593f5dee5c42cf51bd5a02c2dde8ec4 100644 (file)
@@ -465,7 +465,7 @@ void wxNativeFontInfo::SetUnderlined(bool underlined)
 
 void wxNativeFontInfo::SetFaceName(wxString facename)
 {
-    wxStrncpy(lf.lfFaceName, facename, sizeof(lf.lfFaceName)/sizeof(WCHAR));
+    wxStrncpy(lf.lfFaceName, facename, WXSIZEOF(lf.lfFaceName));
 }
 
 void wxNativeFontInfo::SetFamily(wxFontFamily family)