mirror of
https://github.com/reactos/reactos.git
synced 2024-08-05 19:11:16 +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
|
@ -124,10 +124,10 @@ static void EnumInterfaces( PVOID Data, EnumInterfacesFunc cb ) {
|
||||||
void EnumNameServers( HANDLE RegHandle, PWCHAR Interface,
|
void EnumNameServers( HANDLE RegHandle, PWCHAR Interface,
|
||||||
PVOID Data, EnumNameServersFunc cb ) {
|
PVOID Data, EnumNameServersFunc cb ) {
|
||||||
PWCHAR NameServerString =
|
PWCHAR NameServerString =
|
||||||
QueryRegistryValueString(RegHandle, L"NameServer");
|
QueryRegistryValueString(RegHandle, L"DhcpNameServer");
|
||||||
|
|
||||||
if (!NameServerString)
|
if (!NameServerString)
|
||||||
NameServerString = QueryRegistryValueString(RegHandle, L"DhcpNameServer");
|
NameServerString = QueryRegistryValueString(RegHandle, L"NameServer");
|
||||||
|
|
||||||
if (NameServerString) {
|
if (NameServerString) {
|
||||||
/* Now, count the non-empty comma separated */
|
/* Now, count the non-empty comma separated */
|
||||||
|
|
Loading…
Reference in a new issue