iphlpapi: Correct copy/paste error in GetTcpTable.

This commit is contained in:
Juan Lang 2007-11-16 10:25:11 -08:00 committed by Alexandre Julliard
parent a529ef4875
commit 03b63500f0
1 changed files with 2 additions and 2 deletions

View File

@ -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)