(SIGAR-212) pass LANG_ENGLISH to FormatMessage in Windows sigar_strerror impl

This commit is contained in:
Doug MacEachern 2010-04-02 15:50:55 -07:00
parent e4fda73a29
commit b1da05dbe0
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ char *sigar_strerror_get(int err, char *errbuf, int buflen)
FORMAT_MESSAGE_IGNORE_INSERTS,
NULL,
err,
0, /* default language */
MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT), /* force english */
(LPTSTR)errbuf,
(DWORD)buflen,
NULL);