Author: janderwald
Date: Sat Jan 1 21:34:17 2011
New Revision: 50258
URL:
http://svn.reactos.org/svn/reactos?rev=50258&view=rev
Log:
[NETCFGX]
- Fix case where there is only one static dns server set
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/tcpipcon…
==============================================================================
--- trunk/reactos/dll/win32/netcfgx/tcpipconf_notify.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netcfgx/tcpipconf_notify.c [iso-8859-1] Sat Jan 1 21:34:17
2011
@@ -2867,8 +2867,16 @@
}
CoTaskMemFree(pPerInfo);
}
-
- }
+ }
+ else
+ {
+ if (!Info.AutoconfigActive)
+ {
+ CopyIpAddrString(&Info.DnsServerList, &pCurSettings->Ns, IPADDR,
NULL);
+ }
+ pCurSettings->AutoconfigActive = Info.AutoconfigActive;
+ }
+
if (FAILED(LoadFilterSettings(This)))
return E_FAIL;