[NETCFGX] EnumClientServiceProtocol: Use the right parent key when trying to open the 'NDI' subkey.

This makes the description of the selected item show up in the network connection properties.
This commit is contained in:
Eric Kohl 2019-06-20 20:04:10 +02:00
parent 4d5a2dd0f3
commit 79a0f2b430

View file

@ -293,7 +293,7 @@ EnumClientServiceProtocol(HKEY hKey, const GUID * pGuid, NetCfgComponentItem **
}
}
if (RegOpenKeyExW(hKey, L"NDI", 0, KEY_READ, &hNDIKey) == ERROR_SUCCESS)
if (RegOpenKeyExW(hSubKey, L"NDI", 0, KEY_READ, &hNDIKey) == ERROR_SUCCESS)
{
/* retrieve HelpText */
dwSize = sizeof(szText);