Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
dfe48bab
Commit
dfe48bab
authored
Jan 22, 2018
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dnsapi: Use default server list if passed in array is empty.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
dd012af9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
query.c
dlls/dnsapi/query.c
+2
-2
No files found.
dlls/dnsapi/query.c
View file @
dfe48bab
...
...
@@ -547,6 +547,7 @@ static DNS_STATUS dns_set_serverlist( const IP4_ARRAY *addrs )
{
int
i
;
if
(
!
addrs
||
!
addrs
->
AddrCount
)
return
ERROR_SUCCESS
;
if
(
addrs
->
AddrCount
>
MAXNS
)
{
WARN
(
"too many servers: %d only using the first: %d
\n
"
,
...
...
@@ -716,8 +717,7 @@ DNS_STATUS WINAPI DnsQuery_UTF8( PCSTR name, WORD type, DWORD options, PVOID ser
initialise_resolver
();
_res
.
options
|=
dns_map_options
(
options
);
if
(
servers
&&
(
ret
=
dns_set_serverlist
(
servers
)))
return
ret
;
if
((
ret
=
dns_set_serverlist
(
servers
)))
return
ret
;
ret
=
dns_do_query
(
name
,
type
,
options
,
result
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment