Author: gschneider
Date: Sun Apr 25 12:47:10 2010
New Revision: 47010
URL:
http://svn.reactos.org/svn/reactos?rev=47010&view=rev
Log:
[NETCFGX]
- Save DHCP and DNS settings from the basic TCP/IP panel independently of each other
See issue #5193 for more details.
Modified:
trunk/reactos/dll/win32/netcfgx/tcpipconf_notify.c
Modified: trunk/reactos/dll/win32/netcfgx/tcpipconf_notify.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netcfgx/tcpipcon…
==============================================================================
--- trunk/reactos/dll/win32/netcfgx/tcpipconf_notify.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netcfgx/tcpipconf_notify.c [iso-8859-1] Sun Apr 25 12:47:10
2010
@@ -3280,23 +3280,25 @@
RegSetValueExW(hKey, L"DefaultGateway", 0, REG_MULTI_SZ,
(LPBYTE)L"", 1 * sizeof(WCHAR));
RegSetValueExW(hKey, L"DefaultGatewayMetric", 0, REG_MULTI_SZ,
(LPBYTE)L"\0", sizeof(WCHAR) * 2);
}
-
- if (!pCurrentConfig->Ns || pCurrentConfig->AutoconfigActive)
- {
- RegSetValueExW(hKey, L"NameServer", 0, REG_SZ,
(LPBYTE)L"", 1 * sizeof(WCHAR));
- }
- else
- {
- pStr = CreateMultiSzString(pCurrentConfig->Ns, IPADDR, &dwSize,
TRUE);
- if(pStr)
- {
- RegSetValueExW(hKey, L"NameServer", 0, REG_SZ,
(LPBYTE)pStr, dwSize);
- RegDeleteValueW(hKey, L"DhcpNameServer");
- CoTaskMemFree(pStr);
- }
- }
- RegCloseKey(hKey);
- }
+ }
+
+ if (!pCurrentConfig->Ns || pCurrentConfig->AutoconfigActive)
+ {
+ RegSetValueExW(hKey, L"NameServer", 0, REG_SZ,
(LPBYTE)L"", 1 * sizeof(WCHAR));
+ }
+ else
+ {
+ pStr = CreateMultiSzString(pCurrentConfig->Ns, IPADDR, &dwSize,
TRUE);
+ if(pStr)
+ {
+
+ RegSetValueExW(hKey, L"NameServer", 0, REG_SZ, (LPBYTE)pStr,
dwSize);
+ RegDeleteValueW(hKey, L"DhcpNameServer");
+ CoTaskMemFree(pStr);
+ }
+ }
+
+ RegCloseKey(hKey);
}
return S_OK;
}