From 0b9841ccbaacc7485069a3eac33eaefcd700dc74 Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Wed, 22 Oct 2008 09:21:33 +0000 Subject: [PATCH] - delete DhcpNameServer key when storing static Nameserver entries svn path=/trunk/; revision=36890 --- reactos/dll/win32/netcfgx/tcpipconf_notify.c | 1 + 1 file changed, 1 insertion(+) diff --git a/reactos/dll/win32/netcfgx/tcpipconf_notify.c b/reactos/dll/win32/netcfgx/tcpipconf_notify.c index ad1089032cd..270f432d702 100644 --- a/reactos/dll/win32/netcfgx/tcpipconf_notify.c +++ b/reactos/dll/win32/netcfgx/tcpipconf_notify.c @@ -3194,6 +3194,7 @@ INetCfgComponentControl_fnApplyRegistryChanges( if(pStr) { RegSetValueExW(hKey, L"NameServer", 0, REG_SZ, (LPBYTE)pStr, dwSize); + RegDeleteValueW(hKey, L"DhcpNameServer"); CoTaskMemFree(pStr); } }