From cbc098ed885dcae25c41c2673b8f97bbf97c14a4 Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Sat, 1 Jan 2011 21:34:17 +0000 Subject: [PATCH] [NETCFGX] - Fix case where there is only one static dns server set svn path=/trunk/; revision=50258 --- reactos/dll/win32/netcfgx/tcpipconf_notify.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/reactos/dll/win32/netcfgx/tcpipconf_notify.c b/reactos/dll/win32/netcfgx/tcpipconf_notify.c index e3f570b4455..db8ec1b9bc8 100644 --- a/reactos/dll/win32/netcfgx/tcpipconf_notify.c +++ b/reactos/dll/win32/netcfgx/tcpipconf_notify.c @@ -2867,8 +2867,16 @@ Initialize(TcpipConfNotifyImpl * This) } CoTaskMemFree(pPerInfo); } - } + else + { + if (!Info.AutoconfigActive) + { + CopyIpAddrString(&Info.DnsServerList, &pCurSettings->Ns, IPADDR, NULL); + } + pCurSettings->AutoconfigActive = Info.AutoconfigActive; + } + if (FAILED(LoadFilterSettings(This))) return E_FAIL;