[NETCFGX] LoadDNSSettings(): Improve one RegQueryValueExW() call (#2870)

This commit is contained in:
Serge Gautherie 2020-05-28 04:49:18 +02:00 committed by Hermès Bélusca-Maïto
parent b43bb63373
commit 62b4c61f82
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -2719,6 +2719,8 @@ LoadDNSSettings(
{
dwSize = sizeof(DWORD);
RegQueryValueExW(hKey, L"RegisterAdapterName", NULL, NULL, (LPBYTE)&This->pCurrentConfig->pDNS->RegisterAdapterName, &dwSize);
dwSize = sizeof(DWORD);
RegQueryValueExW(hKey, L"RegistrationEnabled", NULL, NULL, (LPBYTE)&This->pCurrentConfig->pDNS->RegistrationEnabled, &dwSize);
dwSize = sizeof(This->pCurrentConfig->pDNS->szDomain);