kernel32/tests: Fixed size to MultiByteToWideChar.
This commit is contained in:
parent
e06016fae0
commit
1ad6abfbbc
|
@ -171,7 +171,7 @@ static int strcmp_aw(LPCWSTR strw, const char *stra)
|
||||||
WCHAR buf[1024];
|
WCHAR buf[1024];
|
||||||
|
|
||||||
if (!stra) return 1;
|
if (!stra) return 1;
|
||||||
MultiByteToWideChar(CP_ACP, 0, stra, -1, buf, sizeof(buf));
|
MultiByteToWideChar(CP_ACP, 0, stra, -1, buf, sizeof(buf)/sizeof(WCHAR));
|
||||||
return lstrcmpW(strw, buf);
|
return lstrcmpW(strw, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue