mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 07:35:10 +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 ) {
|
||||
PWCHAR NameServerString =
|
||||
QueryRegistryValueString(RegHandle, L"NameServer");
|
||||
/* Now, count the non-empty comma separated */
|
||||
|
||||
if (!NameServerString)
|
||||
NameServerString = QueryRegistryValueString(RegHandle, L"DhcpNameServer");
|
||||
|
||||
if (NameServerString) {
|
||||
/* Now, count the non-empty comma separated */
|
||||
DWORD ch;
|
||||
DWORD LastNameStart = 0;
|
||||
for (ch = 0; NameServerString[ch]; ch++) {
|
||||
|
|
Loading…
Reference in a new issue