[PATCH] evr/tests: Use the available ARRAY_SIZE() macro

Michael Stefaniuc mstefani at winehq.org
Tue May 29 18:15:29 CDT 2018


Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
 dlls/evr/tests/filter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/evr/tests/filter.c b/dlls/evr/tests/filter.c
index 3bae738f5f..84fff6df82 100644
--- a/dlls/evr/tests/filter.c
+++ b/dlls/evr/tests/filter.c
@@ -163,7 +163,7 @@ static void test_evr_filter_aggregations(void)
     };
     int i;
 
-    for (i = 0; i < sizeof(iids) / sizeof(iids[0]); i++)
+    for (i = 0; i < ARRAY_SIZE(iids); i++)
     {
         test_aggregation(CLSID_EnhancedVideoRenderer, *iids[i], "filter", i);
     }
-- 
2.14.3




More information about the wine-devel mailing list