Author: janderwald
Date: Fri Oct 17 13:00:06 2008
New Revision: 36793
URL: 
http://svn.reactos.org/svn/reactos?rev=36793&view=rev
Log:
* If there is no static nameserver entry, look up dynamically assigned one
Modified:
    trunk/reactos/dll/win32/iphlpapi/resinfo_reactos.c
Modified: trunk/reactos/dll/win32/iphlpapi/resinfo_reactos.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/iphlpapi/resinfo…
==============================================================================
--- trunk/reactos/dll/win32/iphlpapi/resinfo_reactos.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/iphlpapi/resinfo_reactos.c [iso-8859-1] Fri Oct 17 13:00:06
2008
@@ -125,8 +125,12 @@
                             PVOID Data, EnumNameServersFunc cb ) {
     PWCHAR NameServerString =
        QueryRegistryValueString(RegHandle, L"NameServer");
+
+    if (!NameServerString)
+               NameServerString = QueryRegistryValueString(RegHandle,
L"DhcpNameServer");
+
+    if (NameServerString) {
     /* Now, count the non-empty comma separated */
-    if (NameServerString) {
        DWORD ch;
        DWORD LastNameStart = 0;
        for (ch = 0; NameServerString[ch]; ch++) {