[NETCFGX]
authorThomas Faber <thomas.faber@reactos.org>
Mon, 28 Apr 2014 08:27:57 +0000 (08:27 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Mon, 28 Apr 2014 08:27:57 +0000 (08:27 +0000)
- Use correct parent key instead of an uninitialized handle in INetCfgComponentControl_fnApplyRegistryChanges
CORE-8115 #resolve

svn path=/trunk/; revision=63032

reactos/dll/win32/netcfgx/tcpipconf_notify.c

index 7f53c29..1ba4eeb 100644 (file)
@@ -3141,7 +3141,7 @@ INetCfgComponentControl_fnApplyRegistryChanges(
     //MessageBoxW(NULL, L"INetCfgComponentControl_fnApplyRegistryChanges", NULL, MB_OK);
 
 
-    if (RegCreateKeyExW(hKey, L"SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters", 0, NULL, 0, KEY_WRITE, NULL, &hKey, NULL) == ERROR_SUCCESS)
+    if (RegCreateKeyExW(HKEY_LOCAL_MACHINE, L"SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters", 0, NULL, 0, KEY_WRITE, NULL, &hKey, NULL) == ERROR_SUCCESS)
     {
         if (pCurrentConfig->pDNS)
         {