iphlpapi: Fix HRESULT/win32 error code confusion.

This commit is contained in:
Juan Lang 2013-02-08 12:33:28 -08:00 committed by Alexandre Julliard
parent 59e0d7af68
commit 0ca4ad0d2f
1 changed files with 1 additions and 1 deletions

View File

@ -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;