Remove unnecessary use of __WXFUNCTION__ from wxLog code

Just micro cleanup: there doesn't seem to be any need to show which
function we're in as FormatMessage() is only called from a single place
anyhow, so shorten and simplify the code.
This commit is contained in:
Vadim Zeitlin
2021-01-09 17:21:02 +01:00
parent c70ac66200
commit ccd2064ae8

View File

@@ -1076,8 +1076,8 @@ static const wxChar* GetSysErrorMsg(wxChar* szBuf, size_t sizeBuf, unsigned long
NULL
) == 0 )
{
wxLogDebug(wxS("FormatMessage failed with error 0x%lx in %s"),
GetLastError(), __WXFUNCTION__ ? __WXFUNCTION__ : "");
wxLogDebug(wxS("FormatMessage failed with error 0x%lx"), GetLastError());
// if this happens, something is seriously wrong, so don't use _() here
// for safety
wxSprintf(szBuf, wxS("unknown error 0x%lx"), nErrCode);