[IPHLPAPI] Properly count UDP entries
authorPierre Schweitzer <pierre@reactos.org>
Sun, 18 Nov 2018 17:56:36 +0000 (18:56 +0100)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 18 Nov 2018 17:56:36 +0000 (18:56 +0100)
Fixes crash when running netstat -a with
no TCP connections but with UDP connections

CORE-5401

dll/win32/iphlpapi/ipstats_reactos.c

index 040a480..242626e 100644 (file)
@@ -651,7 +651,7 @@ PMIB_UDPTABLE getUdpTable(void)
 
     TRACE("called.\n");
 
-    totalNumber = getNumTcpEntries();
+    totalNumber = getNumUdpEntries();
 
     status = openTcpFile( &tcpFile, FILE_READ_DATA );
     if( !NT_SUCCESS(status) ) {