mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 13:21:39 +00:00
* Fix retrieval of automatic DNS settings 1/2
svn path=/trunk/; revision=36796
This commit is contained in:
parent
8d9c365f88
commit
71d93bc857
2 changed files with 6 additions and 1 deletions
|
@ -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)
|
if(RegQueryValueExW(hkey, L"DHCPNameServer", NULL, NULL, NULL, &dwSize) == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
pPerAdapterInfo->AutoconfigEnabled = TRUE;
|
pPerAdapterInfo->AutoconfigActive = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
RegCloseKey(hkey);
|
RegCloseKey(hkey);
|
||||||
|
|
|
@ -2364,6 +2364,11 @@ CopyIpAddrString(
|
||||||
}
|
}
|
||||||
ZeroMemory(pNew, sizeof(IP_ADDR));
|
ZeroMemory(pNew, sizeof(IP_ADDR));
|
||||||
pNew->IpAddress = GetIpAddressFromStringA(pCurrent->IpAddress.String);
|
pNew->IpAddress = GetIpAddressFromStringA(pCurrent->IpAddress.String);
|
||||||
|
if (!pNew->IpAddress)
|
||||||
|
{
|
||||||
|
CoTaskMemFree(pNew);
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
if (Type == SUBMASK)
|
if (Type == SUBMASK)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue