mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
- Fix 2 bugs in the CopyIpAddrString leading to duplicate displayment of the same ip /dns /gw address
svn path=/trunk/; revision=36721
This commit is contained in:
@@ -2363,11 +2363,11 @@ CopyIpAddrString(
|
||||
break;
|
||||
}
|
||||
ZeroMemory(pNew, sizeof(IP_ADDR));
|
||||
pNew->IpAddress = GetIpAddressFromStringA(pSrc->IpAddress.String);
|
||||
pNew->IpAddress = GetIpAddressFromStringA(pCurrent->IpAddress.String);
|
||||
|
||||
if (Type == SUBMASK)
|
||||
{
|
||||
pNew->u.Subnetmask = GetIpAddressFromStringA(pSrc->IpMask.String);
|
||||
pNew->u.Subnetmask = GetIpAddressFromStringA(pCurrent->IpMask.String);
|
||||
}
|
||||
else if (Type == METRIC)
|
||||
{
|
||||
@@ -2385,6 +2385,7 @@ CopyIpAddrString(
|
||||
|
||||
pLast = pNew;
|
||||
pCurrent = pCurrent->Next;
|
||||
|
||||
}
|
||||
pLast->Next = NULL;
|
||||
return S_OK;
|
||||
|
||||
Reference in New Issue
Block a user