Bernhard Kölbl : netprofm: Set correct GUIDs for network connections.

Alexandre Julliard julliard at winehq.org
Thu Mar 11 15:59:34 CST 2021


Module: wine
Branch: master
Commit: 4393438ab31e8825edf4111524ef5a0be0a90d00
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=4393438ab31e8825edf4111524ef5a0be0a90d00

Author: Bernhard Kölbl <besentv at gmail.com>
Date:   Fri Mar  5 16:22:07 2021 +0100

netprofm: Set correct GUIDs for network connections.

Retrieve the network connection's GUID from the interface index.

Signed-off-by: Bernhard Kölbl <besentv at gmail.com>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/netprofm/list.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dlls/netprofm/list.c b/dlls/netprofm/list.c
index fa94916dd9b..40d2fd9763c 100644
--- a/dlls/netprofm/list.c
+++ b/dlls/netprofm/list.c
@@ -1738,8 +1738,10 @@ static void init_networks( struct list_manager *mgr )
     {
         struct network *network;
         struct connection *connection;
+        NET_LUID luid;
 
-        id.Data1 = aa->u.s.IfIndex;
+        ConvertInterfaceIndexToLuid(aa->u.s.IfIndex, &luid);
+        ConvertInterfaceLuidToGuid(&luid, &id);
 
         /* assume a one-to-one mapping between networks and connections */
         if (!(network = create_network( &id ))) goto done;




More information about the wine-cvs mailing list