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

This commit is contained in:
Francois Gouget 2015-02-28 17:30:54 +01:00 committed by Alexandre Julliard
parent fa01fdc321
commit 123cfee93c
1 changed files with 8 additions and 7 deletions

View File

@ -19,6 +19,7 @@
*/
#define WIN32_LEAN_AND_MEAN
#define NONAMELESSUNION
#include <stdarg.h>
#include <windows.h>
@ -797,9 +798,9 @@ DWORD __cdecl svcctl_ChangeServiceConfig2W( SC_RPC_HANDLE hService, SC_RPC_CONFI
{
WCHAR *descr = NULL;
if (config.descr->lpDescription[0])
if (config.u.descr->lpDescription[0])
{
if (!(descr = strdupW( config.descr->lpDescription )))
if (!(descr = strdupW( config.u.descr->lpDescription )))
return ERROR_NOT_ENOUGH_MEMORY;
}
@ -813,15 +814,15 @@ DWORD __cdecl svcctl_ChangeServiceConfig2W( SC_RPC_HANDLE hService, SC_RPC_CONFI
break;
case SERVICE_CONFIG_FAILURE_ACTIONS:
WINE_FIXME( "SERVICE_CONFIG_FAILURE_ACTIONS not implemented: period %u msg %s cmd %s\n",
config.actions->dwResetPeriod,
wine_dbgstr_w(config.actions->lpRebootMsg),
wine_dbgstr_w(config.actions->lpCommand) );
config.u.actions->dwResetPeriod,
wine_dbgstr_w(config.u.actions->lpRebootMsg),
wine_dbgstr_w(config.u.actions->lpCommand) );
break;
case SERVICE_CONFIG_PRESHUTDOWN_INFO:
WINE_TRACE( "changing service %p preshutdown timeout to %d\n",
service, config.preshutdown->dwPreshutdownTimeout );
service, config.u.preshutdown->dwPreshutdownTimeout );
service_lock_exclusive( service->service_entry );
service->service_entry->preshutdown_timeout = config.preshutdown->dwPreshutdownTimeout;
service->service_entry->preshutdown_timeout = config.u.preshutdown->dwPreshutdownTimeout;
save_service_config( service->service_entry );
service_unlock( service->service_entry );
break;