msxml3: Fixed incorrect MultiByteToWideChar.

This commit is contained in:
Marcus Meissner 2008-09-04 19:32:01 +02:00 committed by Alexandre Julliard
parent 906dc5881e
commit 980ffb8eb4
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}