Marcus Meissner : msxml3: Fixed incorrect MultiByteToWideChar.
Alexandre Julliard
julliard at winehq.org
Fri Sep 5 06:57:49 CDT 2008
Module: wine
Branch: master
Commit: 980ffb8eb4b850b74a2cb899a7464eef20c9d965
URL: http://source.winehq.org/git/wine.git/?a=commit;h=980ffb8eb4b850b74a2cb899a7464eef20c9d965
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Thu Sep 4 19:32:01 2008 +0200
msxml3: Fixed incorrect MultiByteToWideChar.
---
dlls/msxml3/tests/saxreader.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/msxml3/tests/saxreader.c b/dlls/msxml3/tests/saxreader.c
index 88cd89f..2865f53 100644
--- a/dlls/msxml3/tests/saxreader.c
+++ b/dlls/msxml3/tests/saxreader.c
@@ -140,7 +140,7 @@ static void test_saxstr(unsigned line, const WCHAR *szStr, int nStr, const char
if(len != nStr)
return;
- MultiByteToWideChar(CP_ACP, 0, szTest, -1, buf, sizeof(buf));
+ MultiByteToWideChar(CP_ACP, 0, szTest, -1, buf, sizeof(buf)/sizeof(WCHAR));
ok_(__FILE__,line) (!memcmp(szStr, buf, len*sizeof(WCHAR)), "unexpected szStr %s, expected %s\n",
debugstr_wn(szStr, nStr), szTest);
}
More information about the wine-cvs
mailing list