mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 12:20:07 +00:00
dnsapi/tests: Remove superfluous casts.
The pointers to r1 and r2 are already PDNS_RECORDs.
This commit is contained in:
parent
e4db17f268
commit
b8f17bac2b
@ -37,25 +37,25 @@ static DNS_RECORDA r3 = { NULL, name1, DNS_TYPE_A, sizeof(DNS_A_DATA), { 0 }, 12
|
||||
|
||||
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;
|
||||
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;
|
||||
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;
|
||||
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;
|
||||
ok( DnsRecordCompare( (PDNS_RECORD)&r1, (PDNS_RECORD)&r2 ) == TRUE, "failed unexpectedly\n" );
|
||||
ok( DnsRecordCompare( &r1, &r2 ) == TRUE, "failed unexpectedly\n" );
|
||||
|
||||
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;
|
||||
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 )
|
||||
|
Loading…
Reference in New Issue
Block a user