iphlpapi: Set the mask for gateway entries in GetAdaptersInfo.

This commit is contained in:
Hans Leidekker 2013-10-07 12:24:17 +02:00 committed by Alexandre Julliard
parent cd35ac901f
commit a873fdc66f
1 changed files with 4 additions and 0 deletions

View File

@ -564,8 +564,12 @@ DWORD WINAPI GetAdaptersInfo(PIP_ADAPTER_INFO pAdapterInfo, PULONG pOutBufLen)
if (routeTable->table[i].dwForwardIfIndex == ptr->Index if (routeTable->table[i].dwForwardIfIndex == ptr->Index
&& routeTable->table[i].u1.ForwardType == && routeTable->table[i].u1.ForwardType ==
MIB_IPROUTE_TYPE_INDIRECT) MIB_IPROUTE_TYPE_INDIRECT)
{
toIPAddressString(routeTable->table[i].dwForwardNextHop, toIPAddressString(routeTable->table[i].dwForwardNextHop,
ptr->GatewayList.IpAddress.String); ptr->GatewayList.IpAddress.String);
toIPAddressString(routeTable->table[i].dwForwardMask,
ptr->GatewayList.IpMask.String);
}
if (winsEnabled) { if (winsEnabled) {
ptr->HaveWins = TRUE; ptr->HaveWins = TRUE;
memcpy(ptr->PrimaryWinsServer.IpAddress.String, memcpy(ptr->PrimaryWinsServer.IpAddress.String,