Mercurial > hg > nginx
comparison src/os/win32/ngx_errno.c @ 2739:58399dcc410a
use English only error descriptions in Win32 ngx_strerror_r()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 22 Apr 2009 11:20:31 +0000 |
parents | 3d8ab5957202 |
children | e5a4be07c3eb |
comparison
equal
deleted
inserted
replaced
2738:ae81441e23f4 | 2739:58399dcc410a |
---|---|
5 | 5 |
6 | 6 |
7 /* | 7 /* |
8 * TODO: | 8 * TODO: |
9 * add WSA error messages for NT and 98 | 9 * add WSA error messages for NT and 98 |
10 * test for English only messages | |
11 */ | 10 */ |
12 | 11 |
13 #include <ngx_config.h> | 12 #include <ngx_config.h> |
14 #include <ngx_core.h> | 13 #include <ngx_core.h> |
15 | 14 |
103 } | 102 } |
104 | 103 |
105 len = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | 104 len = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM |
106 |FORMAT_MESSAGE_IGNORE_INSERTS, | 105 |FORMAT_MESSAGE_IGNORE_INSERTS, |
107 NULL, err, | 106 NULL, err, |
108 MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), | 107 MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT), |
109 (char *) errstr, size, NULL); | 108 (char *) errstr, size, NULL); |
110 | 109 |
111 if (len == 0) { | 110 if (len == 0) { |
112 format_error = GetLastError(); | 111 format_error = GetLastError(); |
113 | 112 |