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
eafb44d4
Commit
eafb44d4
authored
Aug 29, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
Aug 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
services: Refuse to start disabled services.
parent
9183a171
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
service.c
dlls/advapi32/tests/service.c
+1
-1
rpc.c
programs/services/rpc.c
+3
-0
No files found.
dlls/advapi32/tests/service.c
View file @
eafb44d4
...
...
@@ -2151,7 +2151,7 @@ static void test_start_stop(void)
goto
cleanup
;
}
le
=
try_start_stop
(
svc_handle
,
displayname
,
is_nt4
);
todo_wine
ok
(
le
==
ERROR_SERVICE_DISABLED
,
"%d != ERROR_SERVICE_DISABLED
\n
"
,
le
);
ok
(
le
==
ERROR_SERVICE_DISABLED
,
"%d != ERROR_SERVICE_DISABLED
\n
"
,
le
);
/* Then one with a bad path */
displayname
=
"Winetest Bad Path"
;
...
...
programs/services/rpc.c
View file @
eafb44d4
...
...
@@ -961,6 +961,9 @@ DWORD __cdecl svcctl_StartServiceW(
if
((
err
=
validate_service_handle
(
hService
,
SERVICE_START
,
&
service
))
!=
0
)
return
err
;
if
(
service
->
service_entry
->
config
.
dwStartType
==
SERVICE_DISABLED
)
return
ERROR_SERVICE_DISABLED
;
err
=
service_start
(
service
->
service_entry
,
dwNumServiceArgs
,
lpServiceArgVectors
);
return
err
;
...
...
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