diff --git a/dll/win32/iphlpapi/ipstats_reactos.c b/dll/win32/iphlpapi/ipstats_reactos.c index 6bf3df63e9..11a96a8a56 100644 --- a/dll/win32/iphlpapi/ipstats_reactos.c +++ b/dll/win32/iphlpapi/ipstats_reactos.c @@ -673,8 +673,9 @@ PVOID getUdpTable(CLASS_TABLE Class) } IpUdpTable = HeapAlloc + /* Added one to totalNumber because we need more buffer than was being allocated */ ( GetProcessHeap(), 0, - UdpTcpTableCall[Class].UdpOffset + (UdpTcpTableCall[Class].UdpSize * totalNumber) ); + UdpTcpTableCall[Class].UdpOffset + (UdpTcpTableCall[Class].UdpSize * (totalNumber + 1)) ); if (!IpUdpTable) { closeTcpFile(tcpFile); return NULL; @@ -683,8 +684,10 @@ PVOID getUdpTable(CLASS_TABLE Class) status = tdiGetEntityIDSet( tcpFile, &entitySet, &numEntities ); for( i = 0; i < numEntities; i++ ) { - if( entitySet[i].tei_entity == CL_TL_ENTITY && - hasArp( tcpFile, &entitySet[i] ) ) { + + /* Commented out the hasArp test because it is not conclusive */ + if( entitySet[i].tei_entity == CL_TL_ENTITY /* && + hasArp( tcpFile, &entitySet[i] )*/ ) { status = tdiGetSetOfThings( tcpFile, INFO_CLASS_PROTOCOL,