diff --git a/Packet_dll/Packet32.c b/Packet_dll/Packet32.c index 29eb7ef..74043dc 100644 --- a/Packet_dll/Packet32.c +++ b/Packet_dll/Packet32.c @@ -308,7 +308,6 @@ BOOLEAN PacketGetStats(LPADAPTER AdapterObject,struct bpf_stat *s) a = (SU_ADAPTER *)AdapterObject->hFile; s->ps_ifdrop = 0; - s->bs_capt = a->Stat_Capt; s->bs_drop = 0; s->bs_recv = a->Stat_Recv; @@ -317,6 +316,15 @@ BOOLEAN PacketGetStats(LPADAPTER AdapterObject,struct bpf_stat *s) BOOLEAN PacketGetStatsEx(LPADAPTER AdapterObject,struct bpf_stat *s) { + SU_ADAPTER *a; + + if (AdapterObject == NULL) + { + return false; + } + a = (SU_ADAPTER *)AdapterObject->hFile; + s->bs_capt = a->Stat_Capt; + return PacketGetStats(AdapterObject, s); }