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