mirror of
https://github.com/reactos/reactos.git
synced 2025-07-27 14:33:44 +00:00
- Fix storing the DhcpIpAddress key
svn path=/trunk/; revision=37038
This commit is contained in:
parent
a9c9171b38
commit
c2a7f9fd0f
1 changed files with 1 additions and 1 deletions
|
@ -525,7 +525,7 @@ void setup_adapter( PDHCP_ADAPTER Adapter, struct client_lease *new_lease ) {
|
||||||
&Adapter->NteContext,
|
&Adapter->NteContext,
|
||||||
&Adapter->NteInstance );
|
&Adapter->NteInstance );
|
||||||
if (hkey) {
|
if (hkey) {
|
||||||
RegSetValueExA(hkey, "DhcpIPAddress", 0, REG_SZ, (LPBYTE)new_lease->address.iabuf, strlen(new_lease->address.iabuf)+1);
|
RegSetValueExA(hkey, "DhcpIPAddress", 0, REG_SZ, (LPBYTE)piaddr(new_lease->address), strlen(piaddr(new_lease->address))+1);
|
||||||
Buffer[0] = '\0';
|
Buffer[0] = '\0';
|
||||||
for(i = 0; i < new_lease->options[DHO_SUBNET_MASK].len; i++)
|
for(i = 0; i < new_lease->options[DHO_SUBNET_MASK].len; i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue