From 3b87af5738e0fe31f1439cb4f5e9a4bbb4ead8ca Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 11 Jan 2021 14:18:42 +0100 Subject: [PATCH] Fix the build when implicit wxString conversions are disabled This corrects a bug introduced in 5d256988be (Add wxMSWFormatMessage() and use it from other places, 2021-01-09). --- src/common/log.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/log.cpp b/src/common/log.cpp index f56c912dc7..b6f4fcdcee 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -1143,7 +1143,8 @@ wxString wxSysErrorMsgStr(unsigned long nErrCode) const wxChar *wxSysErrorMsg(unsigned long nErrCode) { static wxChar s_szBuf[1024]; - wxStrlcpy(s_szBuf, wxSysErrorMsgStr(nErrCode), WXSIZEOF(s_szBuf)); + wxStrlcpy(s_szBuf, (const wxChar*)wxSysErrorMsgStr(nErrCode).c_str(), + WXSIZEOF(s_szBuf)); return s_szBuf; }