mirror of
https://github.com/reactos/reactos.git
synced 2025-01-08 15:21:31 +00:00
- Query first for DhcpNameServer key value as this key is only present when DHCP is activated
svn path=/trunk/; revision=36889
This commit is contained in:
parent
627d39b522
commit
04b274e07b
1 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue