Set AirpcapLoaded to TRUE if we've successfully loaded our DLL and obtained

our addresses.

svn path=/trunk/; revision=19720
This commit is contained in:
Gerald Combs 2006-10-27 20:33:19 +00:00
parent c340b0b69a
commit c0abcac660
1 changed files with 1 additions and 0 deletions

View File

@ -1702,6 +1702,7 @@ BOOL load_airpcap(void)
if((g_PAirpcapSetDecryptionState = (AirpcapSetDecryptionStateHandler) GetProcAddress(AirpcapLib, "AirpcapSetDecryptionState")) == NULL) return FALSE;
if((g_PAirpcapStoreCurConfigAsAdapterDefault = (AirpcapStoreCurConfigAsAdapterDefaultHandler) GetProcAddress(AirpcapLib, "AirpcapStoreCurConfigAsAdapterDefault")) == NULL) return FALSE;
if((g_PAirpcapGetVersion = (AirpcapGetVersionHandler) GetProcAddress(AirpcapLib, "AirpcapGetVersion")) == NULL) return FALSE;
AirpcapLoaded = TRUE;
return TRUE;
}
}