From 2b6ab9eb860523e0b3b1507c6d915f9a68319573 Mon Sep 17 00:00:00 2001 From: Jeff Latimer Date: Mon, 11 Oct 2010 19:56:07 +1100 Subject: [PATCH] iphlpapi: Use Windows rather than Unix values to determine family. --- dlls/iphlpapi/iphlpapi_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/iphlpapi/iphlpapi_main.c b/dlls/iphlpapi/iphlpapi_main.c index 13294660a5c..f14f337745d 100644 --- a/dlls/iphlpapi/iphlpapi_main.c +++ b/dlls/iphlpapi/iphlpapi_main.c @@ -723,7 +723,7 @@ static ULONG adapterAddressesFromIndex(ULONG family, DWORD index, IP_ADAPTER_ADD SOCKET_ADDRESS *v6addrs = NULL; PMIB_IPFORWARDTABLE routeTable = NULL; - if (family == AF_INET) + if (family == WS_AF_INET) { ret = AllocateAndGetIpForwardTableFromStack(&routeTable, FALSE, GetProcessHeap(), 0); @@ -733,9 +733,9 @@ static ULONG adapterAddressesFromIndex(ULONG family, DWORD index, IP_ADAPTER_ADD num_v4_gateways = count_v4_gateways(index, routeTable); } } - else if (family == AF_INET6) + else if (family == WS_AF_INET6) ret = v6addressesFromIndex(index, &v6addrs, &num_v6addrs); - else if (family == AF_UNSPEC) + else if (family == WS_AF_UNSPEC) { ret = AllocateAndGetIpForwardTableFromStack(&routeTable, FALSE, GetProcessHeap(), 0);