Author: cgutman
Date: Sun Aug 1 20:34:10 2010
New Revision: 48399
URL:
http://svn.reactos.org/svn/reactos?rev=48399&view=rev
Log:
[DHCPCSVC]: Revert part of r48215
Modified:
trunk/reactos/dll/win32/dhcpcsvc/dhcp/adapter.c
Modified: trunk/reactos/dll/win32/dhcpcsvc/dhcp/adapter.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/dhcpcsvc/dhcp/ad…
==============================================================================
--- trunk/reactos/dll/win32/dhcpcsvc/dhcp/adapter.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/dhcpcsvc/dhcp/adapter.c [iso-8859-1] Sun Aug 1 20:34:10 2010
@@ -102,8 +102,7 @@
"SYSTEM\\CurrentControlSet\\Control\\Class\\"
"{4D36E972-E325-11CE-BFC1-08002BE10318}";
PCHAR TargetKeyNameStart =
- "SYSTEM\\CurrentControlSet\\Services\\";
- PCHAR TargetKeyNameEnd = "\\Parameters\\Tcpip";
+
"SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters\\Interfaces\\";
PCHAR TargetKeyName = NULL;
PCHAR *EnumKeysLinkage = GetSubkeyNames( EnumKeyName, "\\Linkage" );
PCHAR *EnumKeysTop = GetSubkeyNames( EnumKeyName, "" );
@@ -125,10 +124,10 @@
!strcmp( RootDevice, Adapter->DhclientInfo.name ) ) {
TargetKeyName =
(CHAR*) malloc( strlen( TargetKeyNameStart ) +
- strlen( RootDevice ) + strlen( TargetKeyNameEnd ) + 1);
+ strlen( RootDevice ) + 1);
if( !TargetKeyName ) goto cleanup;
- sprintf( TargetKeyName, "%s%s%s",
- TargetKeyNameStart, RootDevice, TargetKeyNameEnd );
+ sprintf( TargetKeyName, "%s%s",
+ TargetKeyNameStart, RootDevice );
Error = RegCreateKeyExA( HKEY_LOCAL_MACHINE, TargetKeyName, 0, NULL, 0,
KEY_READ, NULL, &OutKey, NULL );
break;
} else {