- Fix setting manual ip address

svn path=/trunk/; revision=37042
This commit is contained in:
Johannes Anderwald 2008-10-28 15:53:01 +00:00
parent 0e6210c139
commit 962142cf78
2 changed files with 2 additions and 1 deletions

View file

@ -14,6 +14,7 @@
<library>ole32</library>
<library>user32</library>
<library>comctl32</library>
<library>ws2_32</library>
<file>netcfgx.c</file>
<file>netcfgx.spec</file>
<file>classfactory.c</file>

View file

@ -3194,7 +3194,7 @@ INetCfgComponentControl_fnApplyRegistryChanges(
//TODO
// add multiple ip addresses when required
if (AddIPAddress(pCurrentConfig->Ip->IpAddress, pCurrentConfig->Ip->u.Subnetmask, pCurrentConfig->Index, &pCurrentConfig->Ip->NTEContext, &NTEInstance) == NO_ERROR)
if (AddIPAddress(htonl(pCurrentConfig->Ip->IpAddress), htonl(pCurrentConfig->Ip->u.Subnetmask), pCurrentConfig->Index, &pCurrentConfig->Ip->NTEContext, &NTEInstance) == NO_ERROR)
{
pStr = CreateMultiSzString(pCurrentConfig->Ip, IPADDR, &dwSize, FALSE);
if(pStr)