mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 20:55:16 +00:00
* Fix retrieval of automatic DNS settings 1/2
svn path=/trunk/; revision=36796
This commit is contained in:
parent
8d9c365f88
commit
71d93bc857
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue