mirror of
https://github.com/reactos/reactos.git
synced 2024-08-04 18:40:59 +00:00
* If there is no static nameserver entry, look up dynamically assigned one
svn path=/trunk/; revision=36793
This commit is contained in:
parent
e81d786ce9
commit
521eec8b76
|
@ -125,8 +125,12 @@ 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"NameServer");
|
||||||
/* Now, count the non-empty comma separated */
|
|
||||||
|
if (!NameServerString)
|
||||||
|
NameServerString = QueryRegistryValueString(RegHandle, L"DhcpNameServer");
|
||||||
|
|
||||||
if (NameServerString) {
|
if (NameServerString) {
|
||||||
|
/* Now, count the non-empty comma separated */
|
||||||
DWORD ch;
|
DWORD ch;
|
||||||
DWORD LastNameStart = 0;
|
DWORD LastNameStart = 0;
|
||||||
for (ch = 0; NameServerString[ch]; ch++) {
|
for (ch = 0; NameServerString[ch]; ch++) {
|
||||||
|
|
Loading…
Reference in a new issue