]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/fontutil.cpp
TRUE, not true; FALSE, not false....
[wxWidgets.git] / src / msw / fontutil.cpp
index 9b61937b170462ae4c2f5f39fde9976345977259..dc7d1bd496897540620b1667b61384af8ace8719 100644 (file)
@@ -202,7 +202,7 @@ bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
     wxZeroMemory(lf);       // all default values
 
     lf.lfCharSet = info.charset;
-    wxStrncpy(lf.lfFaceName, info.facename, sizeof(lf.lfFaceName));
+    wxStrncpy(lf.lfFaceName, info.facename, WXSIZEOF(lf.lfFaceName));
 
     HFONT hfont = ::CreateFontIndirect(&lf);
     if ( !hfont )