diff --git a/airpcap_loader.c b/airpcap_loader.c index 1e37cb6c18..e01b6bc792 100644 --- a/airpcap_loader.c +++ b/airpcap_loader.c @@ -1138,7 +1138,10 @@ get_airpcap_interface_list(int *err, char **err_str) char errbuf[PCAP_ERRBUF_SIZE]; if (!AirpcapLoaded) + { + *err = AIRPCAP_NOT_LOADED; return il; + } if (!g_PAirpcapGetDeviceList(&devsList, errbuf)) { diff --git a/airpcap_loader.h b/airpcap_loader.h index 420eb032cd..da345e247a 100644 --- a/airpcap_loader.h +++ b/airpcap_loader.h @@ -33,6 +33,7 @@ /* Error values from "get_airpcap_interface_list()". */ #define CANT_GET_AIRPCAP_INTERFACE_LIST 0 /* error getting list */ #define NO_AIRPCAP_INTERFACES_FOUND 1 /* list is empty */ +#define AIRPCAP_NOT_LOADED 2 /* Airpcap DLL not loaded */ #define AIRPCAP_CHANNEL_ANY_NAME "ANY"