[ros-diffs] [janderwald] 36721: - Fix 2 bugs in the CopyIpAddrString leading to duplicate displayment of the same ip /dns /gw address
janderwald at svn.reactos.org
janderwald at svn.reactos.org
Sat Oct 11 21:28:40 CEST 2008
Author: janderwald
Date: Sat Oct 11 14:28:39 2008
New Revision: 36721
URL: http://svn.reactos.org/svn/reactos?rev=36721&view=rev
Log:
- Fix 2 bugs in the CopyIpAddrString leading to duplicate displayment of the same ip /dns /gw address
Modified:
trunk/reactos/dll/win32/netcfgx/tcpipconf_notify.c
Modified: trunk/reactos/dll/win32/netcfgx/tcpipconf_notify.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netcfgx/tcpipconf_notify.c?rev=36721&r1=36720&r2=36721&view=diff
==============================================================================
--- trunk/reactos/dll/win32/netcfgx/tcpipconf_notify.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netcfgx/tcpipconf_notify.c [iso-8859-1] Sat Oct 11 14:28:39 2008
@@ -2363,11 +2363,11 @@
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 @@
pLast = pNew;
pCurrent = pCurrent->Next;
+
}
pLast->Next = NULL;
return S_OK;
More information about the Ros-diffs
mailing list