Hans Leidekker : netprofm: Implement INetworkListManager::GetNetwork.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Sep 2 10:23:15 CDT 2015


Module: wine
Branch: master
Commit: 25886fa827c78d84c2d8629fc7bc0eeabde135e3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=25886fa827c78d84c2d8629fc7bc0eeabde135e3

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Wed Sep  2 10:43:50 2015 +0200

netprofm: Implement INetworkListManager::GetNetwork.

---

 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 d3b536d..1871bd9 100644
--- a/dlls/netprofm/list.c
+++ b/dlls/netprofm/list.c
@@ -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(




More information about the wine-cvs mailing list