mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Update Npcap's loopback adapter registry key name, changed in Npcap 0.07-r7
This commit is contained in:
parent
c55b7f6f92
commit
abfcd7ba71
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue