iphlpapi: Allow both direct and indirect default routes in GetBestRoute.

This commit is contained in:
Hans Leidekker 2009-10-12 13:39:30 +02:00 committed by Alexandre Julliard
parent 1e867f3647
commit a57d86068e
1 changed files with 1 additions and 3 deletions

View File

@ -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;
}
}