iphlpapi: Add support for MibIfTableNormalWithoutStatistics in GetIfTable2Ex.
Signed-off-by: André Hentschel <nerv@dawncrow.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b943c7910b
commit
fb48a8f47e
@ -1862,7 +1862,7 @@ DWORD WINAPI GetIfTable2Ex( MIB_IF_TABLE_LEVEL level, MIB_IF_TABLE2 **table )
|
|||||||
|
|
||||||
TRACE( "level %u, table %p\n", level, table );
|
TRACE( "level %u, table %p\n", level, table );
|
||||||
|
|
||||||
if (!table || level > MibIfTableRaw)
|
if (!table || level > MibIfTableNormalWithoutStatistics)
|
||||||
return ERROR_INVALID_PARAMETER;
|
return ERROR_INVALID_PARAMETER;
|
||||||
|
|
||||||
if (level != MibIfTableNormal)
|
if (level != MibIfTableNormal)
|
||||||
|
@ -2009,7 +2009,13 @@ static void test_GetIfTable2Ex(void)
|
|||||||
pFreeMibTable( table );
|
pFreeMibTable( table );
|
||||||
|
|
||||||
table = NULL;
|
table = NULL;
|
||||||
ret = pGetIfTable2Ex( 2, &table );
|
ret = pGetIfTable2Ex( MibIfTableNormalWithoutStatistics, &table );
|
||||||
|
ok( ret == NO_ERROR || broken(ret == ERROR_INVALID_PARAMETER), "got %u\n", ret );
|
||||||
|
ok( table != NULL || broken(!table), "table not set\n" );
|
||||||
|
pFreeMibTable( table );
|
||||||
|
|
||||||
|
table = NULL;
|
||||||
|
ret = pGetIfTable2Ex( 3, &table );
|
||||||
ok( ret == ERROR_INVALID_PARAMETER, "got %u\n", ret );
|
ok( ret == ERROR_INVALID_PARAMETER, "got %u\n", ret );
|
||||||
ok( !table, "table should not be set\n" );
|
ok( !table, "table should not be set\n" );
|
||||||
pFreeMibTable( table );
|
pFreeMibTable( table );
|
||||||
|
@ -24,7 +24,8 @@
|
|||||||
typedef enum _MIB_IF_TABLE_LEVEL
|
typedef enum _MIB_IF_TABLE_LEVEL
|
||||||
{
|
{
|
||||||
MibIfTableNormal,
|
MibIfTableNormal,
|
||||||
MibIfTableRaw
|
MibIfTableRaw,
|
||||||
|
MibIfTableNormalWithoutStatistics,
|
||||||
} MIB_IF_TABLE_LEVEL, *PMIB_IF_TABLE_LEVEL;
|
} MIB_IF_TABLE_LEVEL, *PMIB_IF_TABLE_LEVEL;
|
||||||
|
|
||||||
typedef enum _MIB_NOTIFICATION_TYPE
|
typedef enum _MIB_NOTIFICATION_TYPE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user