From abfcd7ba714846e8e67afdb4cefdb8051880605e Mon Sep 17 00:00:00 2001 From: dmiller Date: Wed, 15 Jun 2016 02:21:28 +0000 Subject: [PATCH] Update Npcap's loopback adapter registry key name, changed in Npcap 0.07-r7 --- libdnet-stripped/src/intf-win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdnet-stripped/src/intf-win32.c b/libdnet-stripped/src/intf-win32.c index 020a83fc4..130e33be0 100644 --- a/libdnet-stripped/src/intf-win32.c +++ b/libdnet-stripped/src/intf-win32.c @@ -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; }