mirror of
https://github.com/nginx/nginx.git
synced 2024-12-11 09:49:02 +08:00
use English only error descriptions in Win32 ngx_strerror_r()
This commit is contained in:
parent
c8e9f26a57
commit
b5b7e89469
@ -7,7 +7,6 @@
|
||||
/*
|
||||
* TODO:
|
||||
* add WSA error messages for NT and 98
|
||||
* test for English only messages
|
||||
*/
|
||||
|
||||
#include <ngx_config.h>
|
||||
@ -105,7 +104,7 @@ ngx_strerror_r(ngx_err_t err, u_char *errstr, size_t size)
|
||||
len = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM
|
||||
|FORMAT_MESSAGE_IGNORE_INSERTS,
|
||||
NULL, err,
|
||||
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
|
||||
MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT),
|
||||
(char *) errstr, size, NULL);
|
||||
|
||||
if (len == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user