netprofm: Fix compilation on systems that don't support nameless unions.

Hans Leidekker hans at codeweavers.com
Wed May 10 07:28:12 CDT 2017


Signed-off-by: Hans Leidekker <hans at codeweavers.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 8847758399..d82ae36615 100644
--- a/dlls/netprofm/list.c
+++ b/dlls/netprofm/list.c
@@ -18,6 +18,8 @@
  */
 
 #define COBJMACROS
+#define NONAMELESSUNION
+#define NONAMELESSSTRUCT
 
 #include "config.h"
 #include <stdarg.h>
@@ -1693,7 +1695,7 @@ static void init_networks( struct list_manager *mgr )
         struct network *network;
         struct connection *connection;
 
-        id.Data1 = aa->IfIndex;
+        id.Data1 = aa->u.s.IfIndex;
 
         /* assume a one-to-one mapping between networks and connections */
         if (!(network = create_network( &id ))) goto done;
-- 
2.11.0




More information about the wine-patches mailing list