mirror of
https://github.com/nginx/nginx.git
synced 2025-06-08 02:02:38 +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:
|
* TODO:
|
||||||
* add WSA error messages for NT and 98
|
* add WSA error messages for NT and 98
|
||||||
* test for English only messages
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ngx_config.h>
|
#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
|
len = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM
|
||||||
|FORMAT_MESSAGE_IGNORE_INSERTS,
|
|FORMAT_MESSAGE_IGNORE_INSERTS,
|
||||||
NULL, err,
|
NULL, err,
|
||||||
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
|
MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT),
|
||||||
(char *) errstr, size, NULL);
|
(char *) errstr, size, NULL);
|
||||||
|
|
||||||
if (len == 0) {
|
if (len == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user