Author: janderwald
Date: Fri Oct 17 14:03:11 2008
New Revision: 36796
URL:
http://svn.reactos.org/svn/reactos?rev=36796&view=rev
Log:
* Fix retrieval of automatic DNS settings 1/2
Modified:
trunk/reactos/dll/win32/iphlpapi/iphlpapi_main.c
trunk/reactos/dll/win32/netcfgx/tcpipconf_notify.c
Modified: trunk/reactos/dll/win32/iphlpapi/iphlpapi_main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/iphlpapi/iphlpap…
==============================================================================
--- trunk/reactos/dll/win32/iphlpapi/iphlpapi_main.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/iphlpapi/iphlpapi_main.c [iso-8859-1] Fri Oct 17 14:03:11
2008
@@ -1542,7 +1542,7 @@
if(RegQueryValueExW(hkey, L"DHCPNameServer", NULL, NULL, NULL, &dwSize)
== ERROR_SUCCESS)
{
- pPerAdapterInfo->AutoconfigEnabled = TRUE;
+ pPerAdapterInfo->AutoconfigActive = TRUE;
}
RegCloseKey(hkey);
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] Fri Oct 17 14:03:11
2008
@@ -2364,6 +2364,11 @@
}
ZeroMemory(pNew, sizeof(IP_ADDR));
pNew->IpAddress = GetIpAddressFromStringA(pCurrent->IpAddress.String);
+ if (!pNew->IpAddress)
+ {
+ CoTaskMemFree(pNew);
+ return E_FAIL;
+ }
if (Type == SUBMASK)
{