kernel32: Output message to stderr in current Unix codepage.
Fixes a bug in which the command "wine /." outputs a garbled error message in languages other than English. Supersedes "kernel32: Output message to stderr in UTF-8"
This commit is contained in:
parent
7aac0159a9
commit
3aff781f63
|
@ -1252,7 +1252,7 @@ void CDECL __wine_kernel_init(void)
|
|||
args[0] = (DWORD_PTR)main_exe_name;
|
||||
FormatMessageW( FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ARGUMENT_ARRAY,
|
||||
NULL, error, 0, msgW, sizeof(msgW)/sizeof(WCHAR), (__ms_va_list *)args );
|
||||
WideCharToMultiByte( CP_ACP, 0, msgW, -1, msg, sizeof(msg), NULL, NULL );
|
||||
WideCharToMultiByte( CP_UNIXCP, 0, msgW, -1, msg, sizeof(msg), NULL, NULL );
|
||||
MESSAGE( "wine: %s", msg );
|
||||
ExitProcess( error );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue