[NETCFGX]

- Use correct parent key instead of an uninitialized handle in INetCfgComponentControl_fnApplyRegistryChanges
CORE-8115 #resolve

svn path=/trunk/; revision=63032
This commit is contained in:
Thomas Faber 2014-04-28 08:27:57 +00:00
parent 2e56e4ba43
commit c06ae88245

View 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)
{