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
fa593d4d
Commit
fa593d4d
authored
Mar 16, 2016
by
Sebastian Lackner
Committed by
Alexandre Julliard
Mar 16, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
services: Pass a process argument to send_control function.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7e217645
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
rpc.c
programs/services/rpc.c
+7
-7
No files found.
programs/services/rpc.c
View file @
fa593d4d
...
...
@@ -1035,25 +1035,25 @@ BOOL process_send_command(struct process_entry *process, const void *data, DWORD
}
/******************************************************************************
*
service
_send_control
*
process
_send_control
*/
static
BOOL
service_send_control
(
struct
service_entry
*
servic
e
,
DWORD
dwControl
,
DWORD
*
result
)
static
BOOL
process_send_control
(
struct
process_entry
*
process
,
const
WCHAR
*
nam
e
,
DWORD
dwControl
,
DWORD
*
result
)
{
service_start_info
*
ssi
;
DWORD
len
;
BOOL
r
;
/* calculate how much space we need to send the startup info */
len
=
strlenW
(
service
->
name
)
+
1
;
len
=
strlenW
(
name
)
+
1
;
ssi
=
HeapAlloc
(
GetProcessHeap
(),
0
,
FIELD_OFFSET
(
service_start_info
,
data
[
len
]));
ssi
->
cmd
=
WINESERV_SENDCONTROL
;
ssi
->
control
=
dwControl
;
ssi
->
total_size
=
FIELD_OFFSET
(
service_start_info
,
data
[
len
]);
ssi
->
name_size
=
strlenW
(
service
->
name
)
+
1
;
strcpyW
(
ssi
->
data
,
service
->
name
);
ssi
->
name_size
=
strlenW
(
name
)
+
1
;
strcpyW
(
ssi
->
data
,
name
);
r
=
process_send_command
(
service
->
process
,
ssi
,
ssi
->
total_size
,
result
);
r
=
process_send_command
(
process
,
ssi
,
ssi
->
total_size
,
result
);
HeapFree
(
GetProcessHeap
(),
0
,
ssi
);
return
r
;
}
...
...
@@ -1176,7 +1176,7 @@ DWORD __cdecl svcctl_ControlService(
if
(
ret
!=
WAIT_OBJECT_0
)
return
ERROR_SERVICE_REQUEST_TIMEOUT
;
service_send_control
(
service
->
service_entry
,
dwControl
,
&
result
);
process_send_control
(
service
->
service_entry
->
process
,
service
->
service_entry
->
name
,
dwControl
,
&
result
);
if
(
lpServiceStatus
)
{
...
...
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