[PATCH] msvcrt/tests: Use matching type to get array element count (PVS-Studio)
Nikolay Sivov
nsivov at codeweavers.com
Mon Oct 12 14:07:19 CDT 2015
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
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 7733a7c..4144d17 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);
--
2.6.1
More information about the wine-patches
mailing list