msvcrt/tests: Use matching type to get array element count (PVS-Studio).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
472f4acb06
commit
d8623f8241
|
@ -1108,7 +1108,7 @@ static void test__wcslwr_s(void)
|
|||
|
||||
/* Test NULL input string and valid size. */
|
||||
errno = EBADF;
|
||||
ret = p_wcslwr_s(NULL, sizeof(buffer)/sizeof(wchar_t));
|
||||
ret = p_wcslwr_s(NULL, sizeof(buffer)/sizeof(buffer[0]));
|
||||
ok(ret == EINVAL, "expected EINVAL, got %d\n", ret);
|
||||
ok(errno == EINVAL, "expected errno EINVAL, got %d\n", errno);
|
||||
|
||||
|
|
Loading…
Reference in New Issue