oleaut32: Fixed buffer size to MBtoWC.
This commit is contained in:
parent
ace8b53418
commit
9d7219dfb9
|
@ -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)
|
static int strcmp_wa(const WCHAR *strw, const char *stra)
|
||||||
{
|
{
|
||||||
WCHAR buf[512];
|
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);
|
return lstrcmpW(strw, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue