netprofm: Implement INetworkListManager::GetNetwork.

This commit is contained in:
Hans Leidekker 2015-09-02 10:43:50 +02:00 committed by Alexandre Julliard
parent fd557984fb
commit 25886fa827
1 changed files with 16 additions and 2 deletions

View File

@ -1193,8 +1193,22 @@ static HRESULT WINAPI list_manager_GetNetwork(
GUID gdNetworkId,
INetwork **ppNetwork )
{
FIXME( "%p, %s, %p\n", iface, debugstr_guid(&gdNetworkId), ppNetwork );
return E_NOTIMPL;
struct list_manager *mgr = impl_from_INetworkListManager( iface );
struct network *network;
TRACE( "%p, %s, %p\n", iface, debugstr_guid(&gdNetworkId), ppNetwork );
LIST_FOR_EACH_ENTRY( network, &mgr->networks, struct network, entry )
{
if (IsEqualGUID( &network->id, &gdNetworkId ))
{
*ppNetwork = &network->INetwork_iface;
INetwork_AddRef( *ppNetwork );
return S_OK;
}
}
return S_FALSE;
}
static HRESULT WINAPI list_manager_GetNetworkConnections(