Francois Gouget : advapi32: Fix compilation on systems that don' t support nameless unions.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 2 08:51:50 CST 2015


Module: wine
Branch: master
Commit: fbc59357644b7eb75d71e62698c206e884c13c54
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fbc59357644b7eb75d71e62698c206e884c13c54

Author: Francois Gouget <fgouget at free.fr>
Date:   Sat Feb 28 11:24:54 2015 +0100

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

---

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

diff --git a/dlls/advapi32/service.c b/dlls/advapi32/service.c
index f9b370b..0eb0a47 100644
--- a/dlls/advapi32/service.c
+++ b/dlls/advapi32/service.c
@@ -28,6 +28,8 @@
 #include <time.h>
 #include <assert.h>
 
+#define NONAMELESSUNION
+
 #include "ntstatus.h"
 #define WIN32_NO_STATUS
 #include "windef.h"
@@ -2214,7 +2216,7 @@ BOOL WINAPI ChangeServiceConfig2W( SC_HANDLE hService, DWORD dwInfoLevel,
         SC_RPC_CONFIG_INFOW info;
 
         info.dwInfoLevel = dwInfoLevel;
-        info.descr = lpInfo;
+        info.u.descr = lpInfo;
         err = svcctl_ChangeServiceConfig2W( hService, info );
     }
     __EXCEPT(rpc_filter)




More information about the wine-cvs mailing list