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

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2018-05-29 01:05:25 +02:00 committed by Alexandre Julliard
parent 7f99932a39
commit 47ef3facdc
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ static void test_DnsValidateName_A( void )
status = DnsValidateName_A( NULL, DnsNameDomain ); status = DnsValidateName_A( NULL, DnsNameDomain );
ok( status == ERROR_INVALID_NAME, "succeeded unexpectedly\n" ); 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 ); status = DnsValidateName_A( test_data[i].name, test_data[i].format );
ok( status == test_data[i].status || broken(status == test_data[i].status_broken), ok( status == test_data[i].status || broken(status == test_data[i].status_broken),