mirror of
https://github.com/reactos/reactos.git
synced 2024-06-19 11:19:47 +00:00
[IPHLPAPI] Properly count UDP entries
Fixes crash when running netstat -a with no TCP connections but with UDP connections CORE-5401
This commit is contained in:
parent
007f43dd56
commit
d18b1fe24b
|
@ -651,7 +651,7 @@ PMIB_UDPTABLE getUdpTable(void)
|
||||||
|
|
||||||
TRACE("called.\n");
|
TRACE("called.\n");
|
||||||
|
|
||||||
totalNumber = getNumTcpEntries();
|
totalNumber = getNumUdpEntries();
|
||||||
|
|
||||||
status = openTcpFile( &tcpFile, FILE_READ_DATA );
|
status = openTcpFile( &tcpFile, FILE_READ_DATA );
|
||||||
if( !NT_SUCCESS(status) ) {
|
if( !NT_SUCCESS(status) ) {
|
||||||
|
|
Loading…
Reference in a new issue