Commit a57d8606 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

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

parent 1e867f36
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment