Author: akhaldi
Date: Sat Dec 5 17:11:25 2015
New Revision: 70274
URL:
http://svn.reactos.org/svn/reactos?rev=70274&view=rev
Log:
[IPHLPAPI] Properly return on invalid parameters in GetIcmpStatisticsEx(). Fixes two
iphlpapi tests.
Modified:
trunk/reactos/dll/win32/iphlpapi/iphlpapi_main.c
Modified: trunk/reactos/dll/win32/iphlpapi/iphlpapi_main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/iphlpapi/iphlpap…
==============================================================================
--- trunk/reactos/dll/win32/iphlpapi/iphlpapi_main.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/iphlpapi/iphlpapi_main.c [iso-8859-1] Sat Dec 5 17:11:25
2015
@@ -2527,6 +2527,13 @@
DWORD WINAPI GetIcmpStatisticsEx(PMIB_ICMP_EX pStats,DWORD dwFamily)
{
FIXME(":stub\n");
+
+ if (!pStats)
+ return ERROR_INVALID_PARAMETER;
+
+ if (dwFamily != AF_INET && dwFamily != AF_INET6)
+ return ERROR_INVALID_PARAMETER;
+
return 0L;
}