netprofm/tests: Fix a test failure on Win7/Win2008 systems.

This commit is contained in:
Nikolay Sivov 2014-04-22 08:16:34 +04:00 committed by Alexandre Julliard
parent 5ef54904f2
commit 3f0a24349c
1 changed files with 3 additions and 2 deletions

View File

@ -56,8 +56,9 @@ static void test_INetworkListManager( void )
ok( hr == S_OK, "got %08x\n", hr );
ok( connected == VARIANT_TRUE || connected == VARIANT_FALSE, "expected boolean value\n" );
INetworkListManager_QueryInterface( mgr, &IID_INetworkCostManager, (void **)&cost_mgr );
ok( hr == S_OK, "got %08x\n", hr );
/* INetworkCostManager is supported starting Win8 */
hr = INetworkListManager_QueryInterface( mgr, &IID_INetworkCostManager, (void **)&cost_mgr );
ok( hr == S_OK || broken(hr == E_NOINTERFACE), "got %08x\n", hr );
if (hr == S_OK)
{
DWORD cost;