From 962142cf78d36b27341ec9ebed30bfb104669d02 Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Tue, 28 Oct 2008 15:53:01 +0000 Subject: [PATCH] - Fix setting manual ip address svn path=/trunk/; revision=37042 --- reactos/dll/win32/netcfgx/netcfgx.rbuild | 1 + reactos/dll/win32/netcfgx/tcpipconf_notify.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/dll/win32/netcfgx/netcfgx.rbuild b/reactos/dll/win32/netcfgx/netcfgx.rbuild index c6d7998e184..f520bd7149f 100644 --- a/reactos/dll/win32/netcfgx/netcfgx.rbuild +++ b/reactos/dll/win32/netcfgx/netcfgx.rbuild @@ -14,6 +14,7 @@ ole32 user32 comctl32 + ws2_32 netcfgx.c netcfgx.spec classfactory.c diff --git a/reactos/dll/win32/netcfgx/tcpipconf_notify.c b/reactos/dll/win32/netcfgx/tcpipconf_notify.c index 412e1e1c027..6a14fb623b9 100644 --- a/reactos/dll/win32/netcfgx/tcpipconf_notify.c +++ b/reactos/dll/win32/netcfgx/tcpipconf_notify.c @@ -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)