Author: janderwald
Date: Tue Oct 28 05:32:07 2008
New Revision: 37038
URL:
http://svn.reactos.org/svn/reactos?rev=37038&view=rev
Log:
- Fix storing the DhcpIpAddress key
Modified:
trunk/reactos/base/services/dhcp/dhclient.c
Modified: trunk/reactos/base/services/dhcp/dhclient.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/dhcp/dhclien…
==============================================================================
--- trunk/reactos/base/services/dhcp/dhclient.c [iso-8859-1] (original)
+++ trunk/reactos/base/services/dhcp/dhclient.c [iso-8859-1] Tue Oct 28 05:32:07 2008
@@ -525,7 +525,7 @@
&Adapter->NteContext,
&Adapter->NteInstance );
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';
for(i = 0; i < new_lease->options[DHO_SUBNET_MASK].len; i++)
{