[IPHLPAPI] Properly return on invalid parameters in GetIcmpStatisticsEx(). Fixes...
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 5 Dec 2015 17:11:25 +0000 (17:11 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 5 Dec 2015 17:11:25 +0000 (17:11 +0000)
svn path=/trunk/; revision=70274

reactos/dll/win32/iphlpapi/iphlpapi_main.c

index b407158..75be6ca 100644 (file)
@@ -2527,6 +2527,13 @@ DWORD WINAPI NhpAllocateAndGetInterfaceInfoFromStack(IP_INTERFACE_NAME_INFO **pp
 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;
 }