Author: janderwald
Date: Wed Oct 22 04:13:15 2008
New Revision: 36889
URL:
http://svn.reactos.org/svn/reactos?rev=36889&view=rev
Log:
- Query first for DhcpNameServer key value as this key is only present when DHCP is
activated
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] Wed Oct 22 04:13:15
2008
@@ -124,10 +124,10 @@
void EnumNameServers( HANDLE RegHandle, PWCHAR Interface,
PVOID Data, EnumNameServersFunc cb ) {
PWCHAR NameServerString =
- QueryRegistryValueString(RegHandle, L"NameServer");
+ QueryRegistryValueString(RegHandle, L"DhcpNameServer");
if (!NameServerString)
- NameServerString = QueryRegistryValueString(RegHandle, L"DhcpNameServer");
+ NameServerString = QueryRegistryValueString(RegHandle, L"NameServer");
if (NameServerString) {
/* Now, count the non-empty comma separated */