[PATCH 0/5] MR307: dnsapi: Fix wow64 translation.

Zebediah Figura zfigura at codeweavers.com
Fri Jun 24 13:47:11 CDT 2022


On 6/24/22 03:01, Hans Leidekker (@hans) wrote:
> Hans Leidekker (@hans) commented about dlls/dnsapi/query.c:
>>       case DnsConfigSearchList:
>>       {
>> -        struct get_searchlist_params params = { buffer, len };
>> -        return RESOLV_CALL( get_searchlist, &params );
>> +        struct get_searchlist_params params;
>> +        DNS_TXT_DATAW *data = buffer;
>> +        unsigned int i, count, needed;
>> +        DWORD list_len = *len;
>> +        WCHAR *p;
>> +
>> +        params.list = NULL;
>> +        params.count = &count;
>> +        params.len = &list_len;
>> +        if ((ret = RESOLV_CALL( get_searchlist, &params )))
>> +            return ret;
>> +        needed = FIELD_OFFSET(DNS_TXT_DATAW, pStringArray[count]) + list_len;
> Since Windows doesn't implement this query, couldn't we pick something without pointers to keep it simple? A double null terminated string perhaps?
> 

That'd be simpler indeed. I'll write a new patch.



More information about the wine-devel mailing list