Hans Leidekker : netprofm: Implement INetworkListManager:: GetNetworkConnection.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Sep 2 10:23:15 CDT 2015
Module: wine
Branch: master
Commit: a0085f70a4cdac8a1943c16cc80b584a5eee269f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a0085f70a4cdac8a1943c16cc80b584a5eee269f
Author: Hans Leidekker <hans at codeweavers.com>
Date: Wed Sep 2 10:44:11 2015 +0200
netprofm: Implement INetworkListManager::GetNetworkConnection.
---
dlls/netprofm/list.c | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/dlls/netprofm/list.c b/dlls/netprofm/list.c
index 1871bd9..e7d8264 100644
--- a/dlls/netprofm/list.c
+++ b/dlls/netprofm/list.c
@@ -1226,9 +1226,23 @@ static HRESULT WINAPI list_manager_GetNetworkConnection(
GUID gdNetworkConnectionId,
INetworkConnection **ppNetworkConnection )
{
- FIXME( "%p, %s, %p\n", iface, debugstr_guid(&gdNetworkConnectionId),
+ struct list_manager *mgr = impl_from_INetworkListManager( iface );
+ struct connection *connection;
+
+ TRACE( "%p, %s, %p\n", iface, debugstr_guid(&gdNetworkConnectionId),
ppNetworkConnection );
- return E_NOTIMPL;
+
+ LIST_FOR_EACH_ENTRY( connection, &mgr->connections, struct connection, entry )
+ {
+ if (IsEqualGUID( &connection->id, &gdNetworkConnectionId ))
+ {
+ *ppNetworkConnection = &connection->INetworkConnection_iface;
+ INetworkConnection_AddRef( *ppNetworkConnection );
+ return S_OK;
+ }
+ }
+
+ return S_FALSE;
}
static HRESULT WINAPI list_manager_IsConnectedToInternet(
More information about the wine-cvs
mailing list