]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/fontutil.cpp
Changed \ to /
[wxWidgets.git] / src / msw / fontutil.cpp
index 5fddec59b862b66dbd27b2dfcb99d61aeb37486b..f75d090505e6b308b19f904cbf5cb90b11a1b281 100644 (file)
@@ -158,6 +158,8 @@ bool wxGetNativeFontEncoding(wxFontEncoding encoding,
             return FALSE;
     }
 
+    info->encoding = encoding;
+   
     return TRUE;
 }
 
@@ -168,7 +170,7 @@ bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
     wxZeroMemory(lf);       // all default values
 
     lf.lfCharSet = info.charset;
-    strncpy(lf.lfFaceName, info.facename, sizeof(lf.lfFaceName));
+    wxStrncpy(lf.lfFaceName, info.facename, sizeof(lf.lfFaceName));
 
     HFONT hfont = ::CreateFontIndirect(&lf);
     if ( !hfont )