From d8623f82419327583a917a6769102854cc32da5b Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Mon, 12 Oct 2015 22:07:19 +0300 Subject: [PATCH] msvcrt/tests: Use matching type to get array element count (PVS-Studio). Signed-off-by: Nikolay Sivov Signed-off-by: Alexandre Julliard --- dlls/msvcrt/tests/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msvcrt/tests/string.c b/dlls/msvcrt/tests/string.c index 7733a7c5228..4144d17a8d3 100644 --- a/dlls/msvcrt/tests/string.c +++ b/dlls/msvcrt/tests/string.c @@ -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);