mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23: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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user