Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
123cfee9
Commit
123cfee9
authored
Feb 28, 2015
by
Francois Gouget
Committed by
Alexandre Julliard
Mar 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
services: Fix compilation on systems that don't support nameless unions.
parent
fa01fdc3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
rpc.c
programs/services/rpc.c
+8
-7
No files found.
programs/services/rpc.c
View file @
123cfee9
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment