mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Fixes a problem reported by WaxDragon when acquiring the nameserver address
from DHCP. This needs to be rechecked but seems harmless. svn path=/trunk/; revision=14759
This commit is contained in:
parent
98f1613a52
commit
45ae6da0c6
1 changed files with 7 additions and 2 deletions
|
@ -465,9 +465,14 @@ void set_name_servers( struct client_lease *new_lease ) {
|
|||
}
|
||||
|
||||
DH_DbgPrint(MID_TRACE,("Setting Nameservers: %s\n", nsbuf));
|
||||
|
||||
|
||||
/* XXX Fixme: I think this may be wrong and that we might have
|
||||
* a problem somewhere else (in iphlpapi for example).
|
||||
*
|
||||
* Recheck the +1 below.
|
||||
*/
|
||||
RegSetValueEx( RegKey, "NameServer", 0, REG_SZ,
|
||||
nsbuf, strlen(nsbuf) );
|
||||
nsbuf, strlen(nsbuf) + 1 );
|
||||
|
||||
free( nsbuf );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue