X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e408bf5257ead0754de5ef37a39867c7536dbe03..3cfde7c049bddf6fd3b4c2e35a6b8ecdcdc1d74f:/src/msw/fontutil.cpp diff --git a/src/msw/fontutil.cpp b/src/msw/fontutil.cpp index 6dfb9fa207..22b4a62101 100644 --- a/src/msw/fontutil.cpp +++ b/src/msw/fontutil.cpp @@ -162,7 +162,7 @@ bool wxTestFontEncoding(const wxNativeEncodingInfo& info) wxZeroMemory(lf); // all default values lf.lfCharSet = (BYTE)info.charset; - wxStrlcpy(lf.lfFaceName, info.facename, WXSIZEOF(lf.lfFaceName)); + wxStrlcpy(lf.lfFaceName, info.facename.c_str(), WXSIZEOF(lf.lfFaceName)); HFONT hfont = ::CreateFontIndirect(&lf); if ( !hfont )