Commit fd75c21c authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

msxml3: Use CP_UNIXCP instead of CP_ACP in libxmlFatalError as the input string…

msxml3: Use CP_UNIXCP instead of CP_ACP in libxmlFatalError as the input string is one generated by a native OS function.
parent a7e1753d
......@@ -1272,10 +1272,10 @@ void libxmlFatalError(void *ctx, const char *msg, ...)
vsprintf(message, msg, 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);
if(wszError)
MultiByteToWideChar(CP_ACP, 0, message, -1, (LPWSTR)wszError, len);
MultiByteToWideChar(CP_UNIXCP, 0, message, -1, (LPWSTR)wszError, len);
if(This->vbInterface)
{
......
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