X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4286a5b59579f09c014fd81683732cd8609cfe9f..18c98e42eeb75317f75c9ba20b09a5bd531a690c:/src/msw/fontdlg.cpp?ds=sidebyside diff --git a/src/msw/fontdlg.cpp b/src/msw/fontdlg.cpp index 90886ed197..c68ffd6d2e 100644 --- a/src/msw/fontdlg.cpp +++ b/src/msw/fontdlg.cpp @@ -199,7 +199,7 @@ void wxFillLogFont(LOGFONT *logFont, wxFont *font) logFont->lfClipPrecision = CLIP_DEFAULT_PRECIS; logFont->lfQuality = PROOF_QUALITY; logFont->lfPitchAndFamily = DEFAULT_PITCH | ff_family; - strcpy(logFont->lfFaceName, ff_face); + wxStrcpy(logFont->lfFaceName, ff_face); } wxFont wxCreateFontFromLogFont(LOGFONT *logFont) // , bool createNew) @@ -209,7 +209,7 @@ wxFont wxCreateFontFromLogFont(LOGFONT *logFont) // , bool createNew) int fontWeight = wxNORMAL; int fontPoints = 10; bool fontUnderline = FALSE; - char *fontFace = NULL; + wxChar *fontFace = NULL; // int lfFamily = logFont->lfPitchAndFamily & 0xF0; int lfFamily = logFont->lfPitchAndFamily;