Commit 4393438a authored by Bernhard Kölbl's avatar Bernhard Kölbl Committed by Alexandre Julliard

netprofm: Set correct GUIDs for network connections.

Retrieve the network connection's GUID from the interface index. Signed-off-by: 's avatarBernhard Kölbl <besentv@gmail.com> Signed-off-by: 's avatarHans Leidekker <hans@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent a6f214d7
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment