[NETCFGX]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Sat, 1 Jan 2011 21:34:17 +0000 (21:34 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Sat, 1 Jan 2011 21:34:17 +0000 (21:34 +0000)
- Fix case where there is only one static dns server set

svn path=/trunk/; revision=50258

reactos/dll/win32/netcfgx/tcpipconf_notify.c

index e3f570b..db8ec1b 100644 (file)
@@ -2867,8 +2867,16 @@ Initialize(TcpipConfNotifyImpl * This)
             }
             CoTaskMemFree(pPerInfo);
         }
             }
             CoTaskMemFree(pPerInfo);
         }
-
     }
     }
+    else
+    {
+        if (!Info.AutoconfigActive)
+        {
+            CopyIpAddrString(&Info.DnsServerList, &pCurSettings->Ns, IPADDR, NULL);
+        }
+        pCurSettings->AutoconfigActive = Info.AutoconfigActive;
+    }
+
     if (FAILED(LoadFilterSettings(This)))
         return E_FAIL;
 
     if (FAILED(LoadFilterSettings(This)))
         return E_FAIL;