Commit 98c64a4b authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

dnsapi: Perform a wide character string comparison if the character set is unknown.

parent 2553b460
......@@ -133,10 +133,13 @@ BOOL WINAPI DnsRecordCompare( PDNS_RECORD r1, PDNS_RECORD r2 )
if (r1->wType != r2->wType ||
r1->wDataLength != r2->wDataLength ||
r1->Flags.DW != r2->Flags.DW ||
r1->Flags.S.Section != r2->Flags.S.Section ||
r1->Flags.S.Delete != r2->Flags.S.Delete ||
r1->Flags.S.Unused != r2->Flags.S.Unused ||
r1->Flags.S.Reserved != r2->Flags.S.Reserved ||
r1->dwReserved != r2->dwReserved) return FALSE;
wide = r1->Flags.S.CharSet == DnsCharSetUnicode;
wide = (r1->Flags.S.CharSet == DnsCharSetUnicode || r1->Flags.S.CharSet == DnsCharSetUnknown);
if (dns_strcmpX( r1->pName, r2->pName, wide )) return FALSE;
switch (r1->wType)
......
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