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
3b8ec304
Commit
3b8ec304
authored
May 12, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
May 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Correctly translate SERVICE_REQUIRED_PRIVILEGES_INFO to RPC.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e3796fab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
service.c
dlls/advapi32/service.c
+14
-1
No files found.
dlls/advapi32/service.c
View file @
3b8ec304
...
...
@@ -2448,6 +2448,7 @@ BOOL WINAPI ChangeServiceConfig2A( SC_HANDLE hService, DWORD dwInfoLevel,
BOOL
WINAPI
ChangeServiceConfig2W
(
SC_HANDLE
hService
,
DWORD
dwInfoLevel
,
LPVOID
lpInfo
)
{
SERVICE_RPC_REQUIRED_PRIVILEGES_INFO
rpc_privinfo
;
DWORD
err
;
__TRY
...
...
@@ -2455,7 +2456,19 @@ BOOL WINAPI ChangeServiceConfig2W( SC_HANDLE hService, DWORD dwInfoLevel,
SC_RPC_CONFIG_INFOW
info
;
info
.
dwInfoLevel
=
dwInfoLevel
;
info
.
u
.
descr
=
lpInfo
;
if
(
dwInfoLevel
==
SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO
)
{
SERVICE_REQUIRED_PRIVILEGES_INFOW
*
privinfo
=
lpInfo
;
WCHAR
*
p
;
for
(
p
=
privinfo
->
pmszRequiredPrivileges
;
*
p
;
p
+=
strlenW
(
p
)
+
1
);
rpc_privinfo
.
cbRequiredPrivileges
=
(
p
-
privinfo
->
pmszRequiredPrivileges
+
1
)
*
sizeof
(
WCHAR
);
rpc_privinfo
.
pRequiredPrivileges
=
(
BYTE
*
)
privinfo
->
pmszRequiredPrivileges
;
info
.
u
.
privinfo
=
&
rpc_privinfo
;
}
else
info
.
u
.
descr
=
lpInfo
;
err
=
svcctl_ChangeServiceConfig2W
(
hService
,
info
);
}
__EXCEPT
(
rpc_filter
)
...
...
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