Skip to content

Commit

Permalink
inverted logic
Browse files Browse the repository at this point in the history
  • Loading branch information
bradh352 committed Jan 8, 2025
1 parent 57edcfb commit f8491f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/ares_sysconfig_win.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ static ares_bool_t get_DNS_Windows(char **outptr)
addressesSize = newSize;
}

# if !defined(HAVE_GETBESTROUTE2) || defined(__WATCOMC__)
# if defined(HAVE_GETBESTROUTE2) && !defined(__WATCOMC__)
/* OpenWatcom's builtin Windows SDK does not have a definition for
* MIB_IPFORWARD_ROW2, and also does not allow the usage of SOCKADDR_INET
* as a variable. Let's work around this by returning the worst possible
Expand Down Expand Up @@ -424,7 +424,7 @@ static ares_bool_t get_DNS_Windows(char **outptr)
ll_scope = ipaaEntry->Ipv6IfIndex;
}

# if !defined(HAVE_GETBESTROUTE2) || defined(__WATCOMC__)
# if defined(HAVE_GETBESTROUTE2) && !defined(__WATCOMC__)
addresses[addressesIndex].metric = getBestRouteMetric(
&ipaaEntry->Luid, (SOCKADDR_INET *)((void *)(namesrvr.sa)),
ipaaEntry->Ipv6Metric);
Expand Down

0 comments on commit f8491f9

Please sign in to comment.