Hans Leidekker : iphlpapi: Set the mask for gateway entries in GetAdaptersInfo.

Alexandre Julliard julliard at winehq.org
Mon Oct 7 14:17:12 CDT 2013


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Mon Oct  7 12:24:17 2013 +0200

iphlpapi: Set the mask for gateway entries in GetAdaptersInfo.

---

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

diff --git a/dlls/iphlpapi/iphlpapi_main.c b/dlls/iphlpapi/iphlpapi_main.c
index 9d23c82..141dbd8 100644
--- a/dlls/iphlpapi/iphlpapi_main.c
+++ b/dlls/iphlpapi/iphlpapi_main.c
@@ -564,8 +564,12 @@ DWORD WINAPI GetAdaptersInfo(PIP_ADAPTER_INFO pAdapterInfo, PULONG pOutBufLen)
                 if (routeTable->table[i].dwForwardIfIndex == ptr->Index
                  && routeTable->table[i].u1.ForwardType ==
                  MIB_IPROUTE_TYPE_INDIRECT)
+                {
                   toIPAddressString(routeTable->table[i].dwForwardNextHop,
                    ptr->GatewayList.IpAddress.String);
+                  toIPAddressString(routeTable->table[i].dwForwardMask,
+                   ptr->GatewayList.IpMask.String);
+                }
               if (winsEnabled) {
                 ptr->HaveWins = TRUE;
                 memcpy(ptr->PrimaryWinsServer.IpAddress.String,




More information about the wine-cvs mailing list