mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 21:38:43 +00:00
[IPHLPAPI] Fix getNumRoutes() return value, on Mib error (#391)
This commit is contained in:
parent
5b38fed776
commit
b6c060ce04
1 changed files with 3 additions and 3 deletions
|
@ -387,9 +387,9 @@ DWORD getNumRoutes(void)
|
||||||
memset( &isnmp, 0, sizeof( isnmp ) );
|
memset( &isnmp, 0, sizeof( isnmp ) );
|
||||||
status = tdiGetMibForIpEntity( tcpFile, &entitySet[i], &isnmp );
|
status = tdiGetMibForIpEntity( tcpFile, &entitySet[i], &isnmp );
|
||||||
if( !NT_SUCCESS(status) ) {
|
if( !NT_SUCCESS(status) ) {
|
||||||
tdiFreeThingSet( entitySet );
|
WARN("tdiGetMibForIpEntity failed for i = %d", i);
|
||||||
closeTcpFile( tcpFile );
|
numRoutes = 0;
|
||||||
return status;
|
break;
|
||||||
}
|
}
|
||||||
numRoutes += isnmp.ipsi_numroutes;
|
numRoutes += isnmp.ipsi_numroutes;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue