Skip to content

Commit a5e8d3c

Browse files
using SUBLANG_DEFAULT is not best choise
1 parent ca87130 commit a5e8d3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

win32/winutil.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ PHP_WINUTIL_API char *php_win32_error_to_msg(HRESULT error)
2929

3030
DWORD ret = FormatMessageW(
3131
FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
32-
NULL, error, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPWSTR)&bufw, 0, NULL
32+
NULL, error, MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL), (LPWSTR)&bufw, 0, NULL
3333
);
3434

3535
if (!ret || !bufw) {

0 commit comments

Comments
 (0)