diff --git a/src/common/log.cpp b/src/common/log.cpp index 838e526a7e..fe169a6b45 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -1066,7 +1066,8 @@ static const wxChar* GetSysErrorMsg(wxChar* szBuf, size_t sizeBuf, unsigned long LPVOID lpMsgBuf; if ( ::FormatMessage ( - FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, + FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | + FORMAT_MESSAGE_IGNORE_INSERTS, NULL, nErrCode, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),