Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8e5b3614
Commit
8e5b3614
authored
Jan 10, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jan 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole: Reduce the access rights required by start_local_service.
parent
c46386ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
rpc.c
dlls/ole32/rpc.c
+5
-5
No files found.
dlls/ole32/rpc.c
View file @
8e5b3614
...
...
@@ -677,20 +677,20 @@ static HRESULT create_server(REFCLSID rclsid)
/*
* start_local_service() - start a service given its name and parameters
*/
static
DWORD
start_local_service
(
LPCWSTR
name
,
DWORD
num
,
LPWSTR
*
params
)
static
DWORD
start_local_service
(
LPCWSTR
name
,
DWORD
num
,
LP
C
WSTR
*
params
)
{
SC_HANDLE
handle
,
hsvc
;
DWORD
r
=
ERROR_FUNCTION_FAILED
;
TRACE
(
"Starting service %s %ld params
\n
"
,
debugstr_w
(
name
),
num
);
handle
=
OpenSCManagerW
(
NULL
,
NULL
,
SC_MANAGER_
ALL_ACCESS
);
handle
=
OpenSCManagerW
(
NULL
,
NULL
,
SC_MANAGER_
CONNECT
);
if
(
!
handle
)
return
r
;
hsvc
=
OpenServiceW
(
handle
,
name
,
S
C_MANAGER_ALL_ACCESS
);
hsvc
=
OpenServiceW
(
handle
,
name
,
S
ERVICE_START
);
if
(
hsvc
)
{
if
(
StartServiceW
(
hsvc
,
num
,
(
LPCWSTR
*
)
params
))
if
(
StartServiceW
(
hsvc
,
num
,
params
))
r
=
ERROR_SUCCESS
;
else
r
=
GetLastError
();
...
...
@@ -768,7 +768,7 @@ static HRESULT create_local_service(REFCLSID rclsid)
num_args
++
;
RegQueryValueExW
(
hkey
,
szServiceParams
,
NULL
,
&
type
,
(
LPBYTE
)
args
[
0
],
&
sz
);
}
r
=
start_local_service
(
buf
,
num_args
,
args
);
r
=
start_local_service
(
buf
,
num_args
,
(
LPCWSTR
*
)
args
);
if
(
r
==
ERROR_SUCCESS
)
hres
=
S_OK
;
HeapFree
(
GetProcessHeap
(),
0
,
args
[
0
]);
...
...
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