iphlpapi: Correct copy/paste error in GetTcpTable.
This commit is contained in:
parent
a529ef4875
commit
03b63500f0
|
@ -1600,8 +1600,8 @@ DWORD WINAPI GetTcpTable(PMIB_TCPTABLE pTcpTable, PDWORD pdwSize, BOOL bOrder)
|
||||||
ret = getTcpTable(&pTcpTable, numEntries, 0, 0);
|
ret = getTcpTable(&pTcpTable, numEntries, 0, 0);
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
size = sizeof(MIB_TCPTABLE);
|
size = sizeof(MIB_TCPTABLE);
|
||||||
if (numEntries > 1)
|
if (pTcpTable->dwNumEntries > 1)
|
||||||
size += (numEntries - 1) * sizeof(MIB_TCPROW);
|
size += (pTcpTable->dwNumEntries - 1) * sizeof(MIB_TCPROW);
|
||||||
*pdwSize = size;
|
*pdwSize = size;
|
||||||
|
|
||||||
if (bOrder)
|
if (bOrder)
|
||||||
|
|
Loading…
Reference in New Issue