oleaut32: Fixed buffer size to MBtoWC.

This commit is contained in:
Marcus Meissner 2011-08-25 10:03:50 +02:00 committed by Alexandre Julliard
parent ace8b53418
commit 9d7219dfb9

View file

@ -348,7 +348,7 @@ static void test_var_call2( int line, HRESULT (WINAPI *func)(LPVARIANT,LPVARIANT
static int strcmp_wa(const WCHAR *strw, const char *stra)
{
WCHAR buf[512];
MultiByteToWideChar(CP_ACP, 0, stra, -1, buf, sizeof(buf));
MultiByteToWideChar(CP_ACP, 0, stra, -1, buf, sizeof(buf)/sizeof(buf[0]));
return lstrcmpW(strw, buf);
}