Rob Shearman : msxml3: Use CP_UNIXCP instead of CP_ACP in libxmlFatalError as the input string is one generated by a native OS function .
Alexandre Julliard
julliard at winehq.org
Wed Aug 27 08:24:05 CDT 2008
Module: wine
Branch: master
Commit: fd75c21c6d8ce83b1609f08721c718cc169e6a8a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fd75c21c6d8ce83b1609f08721c718cc169e6a8a
Author: Rob Shearman <robertshearman at gmail.com>
Date: Tue Aug 26 20:06:09 2008 +0100
msxml3: Use CP_UNIXCP instead of CP_ACP in libxmlFatalError as the input string is one generated by a native OS function.
---
dlls/msxml3/saxreader.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msxml3/saxreader.c b/dlls/msxml3/saxreader.c
index ef62c9f..554b048 100644
--- a/dlls/msxml3/saxreader.c
+++ b/dlls/msxml3/saxreader.c
@@ -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)
{
More information about the wine-cvs
mailing list