Michael Stefaniuc : dnsapi/tests: Use the available ARRAY_SIZE() macro.

Alexandre Julliard julliard at winehq.org
Tue May 29 16:08:30 CDT 2018


Module: wine
Branch: master
Commit: 47ef3facdcd79ad92380ecccc743e183fd13ca52
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=47ef3facdcd79ad92380ecccc743e183fd13ca52

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Tue May 29 01:05:25 2018 +0200

dnsapi/tests: Use the available ARRAY_SIZE() macro.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dnsapi/tests/name.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/dnsapi/tests/name.c b/dlls/dnsapi/tests/name.c
index 3e54355..f4d5b9e 100644
--- a/dlls/dnsapi/tests/name.c
+++ b/dlls/dnsapi/tests/name.c
@@ -146,7 +146,7 @@ static void test_DnsValidateName_A( void )
     status = DnsValidateName_A( NULL, DnsNameDomain );
     ok( status == ERROR_INVALID_NAME, "succeeded unexpectedly\n" );
 
-    for (i = 0; i < sizeof(test_data) / sizeof(test_data[0]); i++)
+    for (i = 0; i < ARRAY_SIZE(test_data); i++)
     {
         status = DnsValidateName_A( test_data[i].name, test_data[i].format );
         ok( status == test_data[i].status || broken(status == test_data[i].status_broken),




More information about the wine-cvs mailing list