Commit 3aff781f authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

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"
parent 7aac0159
......@@ -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 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment