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:
Rob Shearman 2008-08-26 20:06:09 +01:00 committed by Alexandre Julliard
parent a7e1753d7b
commit fd75c21c6d
1 changed files with 2 additions and 2 deletions

View File

@ -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)
{