From fbc59357644b7eb75d71e62698c206e884c13c54 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Sat, 28 Feb 2015 11:24:54 +0100 Subject: [PATCH] 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 f9b370bdc3d..0eb0a47f744 100644 --- a/dlls/advapi32/service.c +++ b/dlls/advapi32/service.c @@ -28,6 +28,8 @@ #include #include +#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)