iphlpapi: Fix HRESULT/win32 error code confusion.
This commit is contained in:
parent
59e0d7af68
commit
0ca4ad0d2f
|
@ -693,7 +693,7 @@ DWORD WINAPI GetIcmpStatisticsEx(PMIB_ICMP_EX stats, DWORD family)
|
|||
}
|
||||
|
||||
ret = GetIcmpStatistics(&ipv4stats);
|
||||
if (SUCCEEDED(ret))
|
||||
if (!ret)
|
||||
{
|
||||
stats->icmpInStats.dwMsgs = ipv4stats.stats.icmpInStats.dwMsgs;
|
||||
stats->icmpInStats.dwErrors = ipv4stats.stats.icmpInStats.dwErrors;
|
||||
|
|
Loading…
Reference in New Issue