1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-25 23:59:01 +00:00

Update Npcap's loopback adapter registry key name, changed in Npcap 0.07-r7

This commit is contained in:
dmiller
2016-06-15 02:21:28 +00:00
parent c55b7f6f92
commit abfcd7ba71

View File

@@ -233,7 +233,7 @@ int intf_get_loopback_name(char *buffer, int buf_size)
if (RegOpenKeyExA(HKEY_LOCAL_MACHINE, NPCAP_SOFTWARE_REGISTRY_KEY, 0, KEY_READ, &hKey) == ERROR_SUCCESS)
{
if (RegQueryValueExA(hKey, "Loopback", 0, &type, (LPBYTE)buffer, &size) == ERROR_SUCCESS && type == REG_SZ)
if (RegQueryValueExA(hKey, "LoopbackAdapter", 0, &type, (LPBYTE)buffer, &size) == ERROR_SUCCESS && type == REG_SZ)
{
res = 1;
}