* Fix retrieval of automatic DNS settings 1/2

svn path=/trunk/; revision=36796
This commit is contained in:
Johannes Anderwald 2008-10-17 19:03:11 +00:00
parent 8d9c365f88
commit 71d93bc857
2 changed files with 6 additions and 1 deletions

View file

@ -1542,7 +1542,7 @@ DWORD WINAPI GetPerAdapterInfo(ULONG IfIndex, PIP_PER_ADAPTER_INFO pPerAdapterIn
if(RegQueryValueExW(hkey, L"DHCPNameServer", NULL, NULL, NULL, &dwSize) == ERROR_SUCCESS)
{
pPerAdapterInfo->AutoconfigEnabled = TRUE;
pPerAdapterInfo->AutoconfigActive = TRUE;
}
RegCloseKey(hkey);

View file

@ -2364,6 +2364,11 @@ CopyIpAddrString(
}
ZeroMemory(pNew, sizeof(IP_ADDR));
pNew->IpAddress = GetIpAddressFromStringA(pCurrent->IpAddress.String);
if (!pNew->IpAddress)
{
CoTaskMemFree(pNew);
return E_FAIL;
}
if (Type == SUBMASK)
{