msxml3: Use CP_UNIXCP instead of CP_ACP in libxmlFatalError as the input string is one generated by a native OS function.
This commit is contained in:
parent
a7e1753d7b
commit
fd75c21c6d
|
@ -1272,10 +1272,10 @@ void libxmlFatalError(void *ctx, const char *msg, ...)
|
||||||
vsprintf(message, msg, args);
|
vsprintf(message, msg, args);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
|
|
||||||
len = MultiByteToWideChar(CP_ACP, 0, message, -1, NULL, 0);
|
len = MultiByteToWideChar(CP_UNIXCP, 0, message, -1, NULL, 0);
|
||||||
wszError = HeapAlloc(GetProcessHeap(), 0, sizeof(WCHAR)*len);
|
wszError = HeapAlloc(GetProcessHeap(), 0, sizeof(WCHAR)*len);
|
||||||
if(wszError)
|
if(wszError)
|
||||||
MultiByteToWideChar(CP_ACP, 0, message, -1, (LPWSTR)wszError, len);
|
MultiByteToWideChar(CP_UNIXCP, 0, message, -1, (LPWSTR)wszError, len);
|
||||||
|
|
||||||
if(This->vbInterface)
|
if(This->vbInterface)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue