iphlpapi: Fix check for icmpstat.icps_outhist.
This commit is contained in:
parent
1adbfe921b
commit
c74b1c2159
|
@ -522,7 +522,7 @@ DWORD WINAPI GetIcmpStatistics(PMIB_ICMP stats)
|
|||
stats->stats.icmpInStats.dwAddrMasks = icmp_stat.icps_inhist[ICMP_MASKREQ];
|
||||
stats->stats.icmpInStats.dwAddrMaskReps = icmp_stat.icps_inhist[ICMP_MASKREPLY];
|
||||
|
||||
#ifdef HAVE_ICPS_OUTHIST
|
||||
#ifdef HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST
|
||||
/* out stats */
|
||||
stats->stats.icmpOutStats.dwMsgs = icmp_stat.icps_oldshort + icmp_stat.icps_oldicmp;
|
||||
for(i = 0; i <= ICMP_MAXTYPE; i++)
|
||||
|
@ -541,7 +541,7 @@ DWORD WINAPI GetIcmpStatistics(PMIB_ICMP stats)
|
|||
stats->stats.icmpOutStats.dwTimestampReps = icmp_stat.icps_outhist[ICMP_TSTAMPREPLY];
|
||||
stats->stats.icmpOutStats.dwAddrMasks = icmp_stat.icps_outhist[ICMP_MASKREQ];
|
||||
stats->stats.icmpOutStats.dwAddrMaskReps = icmp_stat.icps_outhist[ICMP_MASKREPLY];
|
||||
#endif /* ICPS_OUTHIST */
|
||||
#endif /* HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST */
|
||||
ret = NO_ERROR;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue