Juan Lang : iphlpapi: Fix HRESULT/win32 error code confusion.

Alexandre Julliard julliard at winehq.org
Mon Feb 11 13:06:30 CST 2013


Module: wine
Branch: master
Commit: 0ca4ad0d2fe616a9a54a30bbee88c787afc5ee1a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0ca4ad0d2fe616a9a54a30bbee88c787afc5ee1a

Author: Juan Lang <juan.lang at gmail.com>
Date:   Fri Feb  8 12:33:28 2013 -0800

iphlpapi: Fix HRESULT/win32 error code confusion.

---

 dlls/iphlpapi/ipstats.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/iphlpapi/ipstats.c b/dlls/iphlpapi/ipstats.c
index 966d24e..1f52fcc 100644
--- a/dlls/iphlpapi/ipstats.c
+++ b/dlls/iphlpapi/ipstats.c
@@ -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;




More information about the wine-cvs mailing list