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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user