Prefix unknown error's code with 0x, and log FormaMessage's error code
This commit is contained in:
@@ -1075,9 +1075,11 @@ 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"),
|
||||||
|
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 %lx"), nErrCode);
|
wxSprintf(szBuf, wxS("unknown error 0x%lx"), nErrCode);
|
||||||
return szBuf;
|
return szBuf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user