https://git.reactos.org/?p=reactos.git;a=commitdiff;h=62b4c61f82b4fb29faac6…
commit 62b4c61f82b4fb29faac651414951a06969cf17d
Author: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
AuthorDate: Thu May 28 04:49:18 2020 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Thu Mar 4 23:29:38 2021 +0100
[NETCFGX] LoadDNSSettings(): Improve one RegQueryValueExW() call (#2870)
---
dll/win32/netcfgx/tcpipconf_notify.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dll/win32/netcfgx/tcpipconf_notify.c b/dll/win32/netcfgx/tcpipconf_notify.c
index 2844d3afb4e..21eaa3485a0 100644
--- a/dll/win32/netcfgx/tcpipconf_notify.c
+++ b/dll/win32/netcfgx/tcpipconf_notify.c
@@ -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);