iphlpapi: Allow both direct and indirect default routes in GetBestRoute.
This commit is contained in:
parent
1e867f3647
commit
a57d86068e
|
@ -869,9 +869,7 @@ DWORD WINAPI GetBestRoute(DWORD dwDestAddr, DWORD dwSourceAddr, PMIB_IPFORWARDRO
|
|||
matchedBits = numShifts;
|
||||
matchedNdx = ndx;
|
||||
}
|
||||
else if (!matchedBits && table->table[ndx].dwForwardType ==
|
||||
MIB_IPROUTE_TYPE_INDIRECT) {
|
||||
/* default to a default gateway */
|
||||
else if (!matchedBits) {
|
||||
matchedNdx = ndx;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue