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

Alexandre Julliard julliard at winehq.org
Mon Oct 12 11:19:49 CDT 2009


Module: wine
Branch: master
Commit: a57d86068e564c2cca63673c9a695f5290c49de6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a57d86068e564c2cca63673c9a695f5290c49de6

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Mon Oct 12 13:39:30 2009 +0200

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

---

 dlls/iphlpapi/iphlpapi_main.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/dlls/iphlpapi/iphlpapi_main.c b/dlls/iphlpapi/iphlpapi_main.c
index 522d1d5..011e21a 100644
--- a/dlls/iphlpapi/iphlpapi_main.c
+++ b/dlls/iphlpapi/iphlpapi_main.c
@@ -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;
         }
       }




More information about the wine-cvs mailing list