mirror of
https://github.com/reactos/reactos.git
synced 2024-10-22 22:09:47 +00:00
- delete DhcpNameServer key when storing static Nameserver entries
svn path=/trunk/; revision=36890
This commit is contained in:
parent
04b274e07b
commit
0b9841ccba
|
@ -3194,6 +3194,7 @@ INetCfgComponentControl_fnApplyRegistryChanges(
|
||||||
if(pStr)
|
if(pStr)
|
||||||
{
|
{
|
||||||
RegSetValueExW(hKey, L"NameServer", 0, REG_SZ, (LPBYTE)pStr, dwSize);
|
RegSetValueExW(hKey, L"NameServer", 0, REG_SZ, (LPBYTE)pStr, dwSize);
|
||||||
|
RegDeleteValueW(hKey, L"DhcpNameServer");
|
||||||
CoTaskMemFree(pStr);
|
CoTaskMemFree(pStr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue