netprofm: Set correct GUIDs for network connections.

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

Signed-off-by: Bernhard Kölbl <besentv@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 4393438ab3)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
Bernhard Kölbl 2021-03-05 16:22:07 +01:00 committed by Michael Stefaniuc
parent 3d74e4b563
commit 597a3b414e
1 changed files with 3 additions and 1 deletions

View File

@ -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;