* If there is no static nameserver entry, look up dynamically assigned one
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Fri, 17 Oct 2008 18:00:06 +0000 (18:00 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Fri, 17 Oct 2008 18:00:06 +0000 (18:00 +0000)
svn path=/trunk/; revision=36793

reactos/dll/win32/iphlpapi/resinfo_reactos.c

index c20a8fe..a951658 100644 (file)
@@ -125,8 +125,12 @@ void EnumNameServers( HANDLE RegHandle, PWCHAR Interface,
                             PVOID Data, EnumNameServersFunc cb ) {
     PWCHAR NameServerString =
        QueryRegistryValueString(RegHandle, L"NameServer");
-    /* Now, count the non-empty comma separated */
+
+    if (!NameServerString)
+               NameServerString = QueryRegistryValueString(RegHandle, L"DhcpNameServer");
+
     if (NameServerString) {
+    /* Now, count the non-empty comma separated */
        DWORD ch;
        DWORD LastNameStart = 0;
        for (ch = 0; NameServerString[ch]; ch++) {