reactos/lib/iphlpapi
diff -u -r1.7 -r1.8
--- ifenum_reactos.c 5 Mar 2004 04:50:01 -0000 1.7
+++ ifenum_reactos.c 21 Jun 2004 02:21:16 -0000 1.8
@@ -393,7 +393,7 @@
return STATUS_SUCCESS;
}
-static DWORD getNumInterfacesInt(BOOL onlyLoopback)
+static DWORD getNumInterfacesInt(BOOL onlyNonLoopback)
{
DWORD numEntities, numInterfaces = 0;
TDIEntityID *entitySet;
@@ -419,7 +419,8 @@
for( i = 0; i < numEntities; i++ ) {
if( isInterface( &entitySet[i] ) &&
- (!onlyLoopback || isLoopback( tcpFile, &entitySet[i] )) )
+ (!onlyNonLoopback ||
+ (onlyNonLoopback && !isLoopback( tcpFile, &entitySet[i] ))) )
numInterfaces++;
}