From 04b274e07ba77799f1d9f1fb8eda48f0d2edd8fa Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Wed, 22 Oct 2008 09:13:15 +0000 Subject: [PATCH] - Query first for DhcpNameServer key value as this key is only present when DHCP is activated svn path=/trunk/; revision=36889 --- reactos/dll/win32/iphlpapi/resinfo_reactos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/dll/win32/iphlpapi/resinfo_reactos.c b/reactos/dll/win32/iphlpapi/resinfo_reactos.c index a4625efb805..693c9881e4e 100644 --- a/reactos/dll/win32/iphlpapi/resinfo_reactos.c +++ b/reactos/dll/win32/iphlpapi/resinfo_reactos.c @@ -124,10 +124,10 @@ static void EnumInterfaces( PVOID Data, EnumInterfacesFunc cb ) { 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 */