Changeset 9328 for trunk/src/iphlpapi/iphlpapi.cpp
- Timestamp:
- Oct 7, 2002, 12:25:56 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/iphlpapi/iphlpapi.cpp
r9290 r9328 1 /* $Id: iphlpapi.cpp,v 1.1 0 2002-09-24 11:47:14sandervl Exp $ */1 /* $Id: iphlpapi.cpp,v 1.11 2002-10-07 10:25:56 sandervl Exp $ */ 2 2 /* 3 3 * IPHLPAPI library … … 400 400 DWORD dwRequired = i_sizeOfIP_ADAPTER_INFO(pip); 401 401 402 if (lSpaceLeft - dwRequired > 0)402 if (lSpaceLeft - dwRequired >= 0) 403 403 { 404 404 lSpaceLeft -= dwRequired; 405 405 406 // copy over the whole structure hierarchy 406 // @PF revised - this thing works because we currently do not support 407 // multi-ip, multi-gateway or multi-DHCP servers lists 408 // TODO - add lists support 407 409 memcpy(pTarget, pip, sizeof( IP_ADAPTER_INFO )); 410 // point to currentIPAddress 411 ((PIP_ADAPTER_INFO)(pTarget))->CurrentIpAddress = &((PIP_ADAPTER_INFO)(pTarget))->IpAddressList; 408 412 pTarget += sizeof( IP_ADAPTER_INFO ); 409 413 410 // point to currentIPAddress411 ((PIP_ADAPTER_INFO)(pTarget))->CurrentIpAddress = &((PIP_ADAPTER_INFO)(pTarget))->IpAddressList;412 //@@PF Need to fix lots of stuff here413 414 // i_copyIP_ADDRESS_STRING(&pTarget, &pip->IpAddressList); 414 415 // i_copyIP_ADDRESS_STRING(&pTarget, &pip->GatewayList);
Note:
See TracChangeset
for help on using the changeset viewer.