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:
Nikolay Sivov 2015-10-12 22:07:19 +03:00 committed by Alexandre Julliard
parent 472f4acb06
commit d8623f8241
1 changed files with 1 additions and 1 deletions

View File

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