X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e408bf5257ead0754de5ef37a39867c7536dbe03..79cb759dc8580da2e82e880cd94a08cd38bb814e:/src/msw/font.cpp diff --git a/src/msw/font.cpp b/src/msw/font.cpp index a040333520..ed8728be50 100644 --- a/src/msw/font.cpp +++ b/src/msw/font.cpp @@ -618,7 +618,7 @@ void wxNativeFontInfo::SetUnderlined(bool underlined) bool wxNativeFontInfo::SetFaceName(const wxString& facename) { - wxStrlcpy(lf.lfFaceName, facename, WXSIZEOF(lf.lfFaceName)); + wxStrlcpy(lf.lfFaceName, facename.c_str(), WXSIZEOF(lf.lfFaceName)); return true; }