From 62b4c61f82b4fb29faac651414951a06969cf17d Mon Sep 17 00:00:00 2001 From: Serge Gautherie Date: Thu, 28 May 2020 04:49:18 +0200 Subject: [PATCH] [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);