[PATCH v2] netprofm: Set correct GUIDs for network connections.
Bernhard Kölbl
besentv at gmail.com
Fri Mar 5 09:22:07 CST 2021
Retrieve the network connection's GUID from the interface index.
Signed-off-by: Bernhard Kölbl <besentv at gmail.com>
---
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 f9b9e2ea312..828d8cebeb2 100644
--- a/dlls/netprofm/list.c
+++ b/dlls/netprofm/list.c
@@ -1736,8 +1736,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;
--
2.30.1
More information about the wine-devel
mailing list