inetmib1: Fix wrong arguments.
This commit is contained in:
parent
0d88bf89dc
commit
c62529a7ae
|
@ -730,7 +730,7 @@ static void mib2IpRouteInit(void)
|
||||||
MIB_IPFORWARDTABLE *table = HeapAlloc(GetProcessHeap(), 0, size);
|
MIB_IPFORWARDTABLE *table = HeapAlloc(GetProcessHeap(), 0, size);
|
||||||
if (table)
|
if (table)
|
||||||
{
|
{
|
||||||
if (!GetIpForwardTable(ipRouteTable, &size, TRUE)) ipRouteTable = table;
|
if (!GetIpForwardTable(table, &size, TRUE)) ipRouteTable = table;
|
||||||
else HeapFree(GetProcessHeap(), 0, table );
|
else HeapFree(GetProcessHeap(), 0, table );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -813,7 +813,7 @@ static void mib2IpNetInit(void)
|
||||||
MIB_IPNETTABLE *table = HeapAlloc(GetProcessHeap(), 0, size);
|
MIB_IPNETTABLE *table = HeapAlloc(GetProcessHeap(), 0, size);
|
||||||
if (table)
|
if (table)
|
||||||
{
|
{
|
||||||
if (!GetIpNetTable(ipNetTable, &size, FALSE)) ipNetTable = table;
|
if (!GetIpNetTable(table, &size, FALSE)) ipNetTable = table;
|
||||||
else HeapFree(GetProcessHeap(), 0, table );
|
else HeapFree(GetProcessHeap(), 0, table );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue