[PATCH] wintrust: Use the ARRAY_SIZE() macro
Michael Stefaniuc
mstefani at winehq.org
Mon Apr 29 14:13:22 CDT 2019
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/wintrust/tests/softpub.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wintrust/tests/softpub.c b/dlls/wintrust/tests/softpub.c
index 914f04d7c0..2a4f4f4b25 100644
--- a/dlls/wintrust/tests/softpub.c
+++ b/dlls/wintrust/tests/softpub.c
@@ -1211,7 +1211,7 @@ static void test_wintrust_digest(void)
BOOL ret;
int i, j;
- for (i = 0; i < sizeof(tests)/sizeof(tests[0]); i++)
+ for (i = 0; i < ARRAY_SIZE(tests); i++)
{
file = create_temp_file(pathW);
ok(file != INVALID_HANDLE_VALUE, "failed to create temporary file\n");
--
2.20.1
More information about the wine-devel
mailing list