mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 12:32:47 +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 ) );
|
||||
status = tdiGetMibForIpEntity( tcpFile, &entitySet[i], &isnmp );
|
||||
if( !NT_SUCCESS(status) ) {
|
||||
tdiFreeThingSet( entitySet );
|
||||
closeTcpFile( tcpFile );
|
||||
return status;
|
||||
WARN("tdiGetMibForIpEntity failed for i = %d", i);
|
||||
numRoutes = 0;
|
||||
break;
|
||||
}
|
||||
numRoutes += isnmp.ipsi_numroutes;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue