[DNSAPI_WINETEST] Sync with Wine Staging 4.0. CORE-15682
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 25 Jan 2019 12:21:12 +0000 (13:21 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 25 Jan 2019 12:21:12 +0000 (13:21 +0100)
modules/rostests/winetests/dnsapi/name.c

index 3e54355..f4d5b9e 100644 (file)
@@ -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),