Commit b8f17bac authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

dnsapi/tests: Remove superfluous casts.

The pointers to r1 and r2 are already PDNS_RECORDs.
parent e4db17f2
...@@ -37,25 +37,25 @@ static DNS_RECORDA r3 = { NULL, name1, DNS_TYPE_A, sizeof(DNS_A_DATA), { 0 }, 12 ...@@ -37,25 +37,25 @@ static DNS_RECORDA r3 = { NULL, name1, DNS_TYPE_A, sizeof(DNS_A_DATA), { 0 }, 12
static void test_DnsRecordCompare( void ) static void test_DnsRecordCompare( void )
{ {
ok( DnsRecordCompare( (PDNS_RECORD)&r1, (PDNS_RECORD)&r1 ) == TRUE, "failed unexpectedly\n" ); ok( DnsRecordCompare( &r1, &r1 ) == TRUE, "failed unexpectedly\n" );
r2.pName = name2; r2.pName = name2;
ok( DnsRecordCompare( (PDNS_RECORD)&r1, (PDNS_RECORD)&r2 ) == TRUE, "failed unexpectedly\n" ); ok( DnsRecordCompare( &r1, &r2 ) == TRUE, "failed unexpectedly\n" );
r2.Flags.S.CharSet = DnsCharSetUnicode; r2.Flags.S.CharSet = DnsCharSetUnicode;
ok( DnsRecordCompare( (PDNS_RECORD)&r1, (PDNS_RECORD)&r2 ) == FALSE, "succeeded unexpectedly\n" ); ok( DnsRecordCompare( &r1, &r2 ) == FALSE, "succeeded unexpectedly\n" );
r2.Flags.S.CharSet = DnsCharSetAnsi; r2.Flags.S.CharSet = DnsCharSetAnsi;
ok( DnsRecordCompare( (PDNS_RECORD)&r1, (PDNS_RECORD)&r2 ) == FALSE, "succeeded unexpectedly\n" ); ok( DnsRecordCompare( &r1, &r2 ) == FALSE, "succeeded unexpectedly\n" );
r1.Flags.S.CharSet = DnsCharSetAnsi; r1.Flags.S.CharSet = DnsCharSetAnsi;
ok( DnsRecordCompare( (PDNS_RECORD)&r1, (PDNS_RECORD)&r2 ) == TRUE, "failed unexpectedly\n" ); ok( DnsRecordCompare( &r1, &r2 ) == TRUE, "failed unexpectedly\n" );
r1.dwTtl = 0; r1.dwTtl = 0;
ok( DnsRecordCompare( (PDNS_RECORD)&r1, (PDNS_RECORD)&r2 ) == TRUE, "failed unexpectedly\n" ); ok( DnsRecordCompare( &r1, &r2 ) == TRUE, "failed unexpectedly\n" );
r2.Data.A.IpAddress = 0; r2.Data.A.IpAddress = 0;
ok( DnsRecordCompare( (PDNS_RECORD)&r1, (PDNS_RECORD)&r2 ) == FALSE, "succeeded unexpectedly\n" ); ok( DnsRecordCompare( &r1, &r2 ) == FALSE, "succeeded unexpectedly\n" );
} }
static void test_DnsRecordSetCompare( void ) static void test_DnsRecordSetCompare( void )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment