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
160b55cb
Commit
160b55cb
authored
Jun 26, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/service: Use the correct registry key for the service account.
parent
3418ed23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
service.c
dlls/advapi32/service.c
+8
-2
No files found.
dlls/advapi32/service.c
View file @
160b55cb
...
@@ -238,6 +238,8 @@ static const WCHAR szDependencies[] = {
...
@@ -238,6 +238,8 @@ static const WCHAR szDependencies[] = {
'D'
,
'e'
,
'p'
,
'e'
,
'n'
,
'd'
,
'e'
,
'n'
,
'c'
,
'i'
,
'e'
,
's'
,
0
};
'D'
,
'e'
,
'p'
,
'e'
,
'n'
,
'd'
,
'e'
,
'n'
,
'c'
,
'i'
,
'e'
,
's'
,
0
};
static
const
WCHAR
szDependOnService
[]
=
{
static
const
WCHAR
szDependOnService
[]
=
{
'D'
,
'e'
,
'p'
,
'e'
,
'n'
,
'd'
,
'O'
,
'n'
,
'S'
,
'e'
,
'r'
,
'v'
,
'i'
,
'c'
,
'e'
,
0
};
'D'
,
'e'
,
'p'
,
'e'
,
'n'
,
'd'
,
'O'
,
'n'
,
'S'
,
'e'
,
'r'
,
'v'
,
'i'
,
'c'
,
'e'
,
0
};
static
const
WCHAR
szObjectName
[]
=
{
'O'
,
'b'
,
'j'
,
'e'
,
'c'
,
't'
,
'N'
,
'a'
,
'm'
,
'e'
,
0
};
struct
reg_value
{
struct
reg_value
{
DWORD
type
;
DWORD
type
;
...
@@ -1317,6 +1319,8 @@ CreateServiceW( SC_HANDLE hSCManager, LPCWSTR lpServiceName,
...
@@ -1317,6 +1319,8 @@ CreateServiceW( SC_HANDLE hSCManager, LPCWSTR lpServiceName,
if
(
lpLoadOrderGroup
)
if
(
lpLoadOrderGroup
)
service_set_string
(
&
val
[
n
++
],
szGroup
,
lpLoadOrderGroup
);
service_set_string
(
&
val
[
n
++
],
szGroup
,
lpLoadOrderGroup
);
/* FIXME: lpDependencies is used to create both DependOnService and DependOnGroup
* There is no such key as what szDependencies refers to */
if
(
lpDependencies
)
if
(
lpDependencies
)
service_set_multi_string
(
&
val
[
n
++
],
szDependencies
,
lpDependencies
);
service_set_multi_string
(
&
val
[
n
++
],
szDependencies
,
lpDependencies
);
...
@@ -1324,7 +1328,7 @@ CreateServiceW( SC_HANDLE hSCManager, LPCWSTR lpServiceName,
...
@@ -1324,7 +1328,7 @@ CreateServiceW( SC_HANDLE hSCManager, LPCWSTR lpServiceName,
FIXME
(
"Don't know how to add a Password for a service.
\n
"
);
FIXME
(
"Don't know how to add a Password for a service.
\n
"
);
if
(
lpServiceStartName
)
if
(
lpServiceStartName
)
service_set_string
(
&
val
[
n
++
],
sz
DependOnServic
e
,
lpServiceStartName
);
service_set_string
(
&
val
[
n
++
],
sz
ObjectNam
e
,
lpServiceStartName
);
r
=
service_write_values
(
hKey
,
val
,
n
);
r
=
service_write_values
(
hKey
,
val
,
n
);
if
(
r
!=
ERROR_SUCCESS
)
if
(
r
!=
ERROR_SUCCESS
)
...
@@ -2209,6 +2213,8 @@ BOOL WINAPI ChangeServiceConfigW( SC_HANDLE hService, DWORD dwServiceType,
...
@@ -2209,6 +2213,8 @@ BOOL WINAPI ChangeServiceConfigW( SC_HANDLE hService, DWORD dwServiceType,
if
(
lpLoadOrderGroup
)
if
(
lpLoadOrderGroup
)
service_set_string
(
&
val
[
n
++
],
szGroup
,
lpLoadOrderGroup
);
service_set_string
(
&
val
[
n
++
],
szGroup
,
lpLoadOrderGroup
);
/* FIXME: lpDependencies is used to create/change both DependOnService and DependOnGroup
* There is no such key as what szDependencies refers to */
if
(
lpDependencies
)
if
(
lpDependencies
)
service_set_multi_string
(
&
val
[
n
++
],
szDependencies
,
lpDependencies
);
service_set_multi_string
(
&
val
[
n
++
],
szDependencies
,
lpDependencies
);
...
@@ -2216,7 +2222,7 @@ BOOL WINAPI ChangeServiceConfigW( SC_HANDLE hService, DWORD dwServiceType,
...
@@ -2216,7 +2222,7 @@ BOOL WINAPI ChangeServiceConfigW( SC_HANDLE hService, DWORD dwServiceType,
FIXME
(
"ignoring password
\n
"
);
FIXME
(
"ignoring password
\n
"
);
if
(
lpServiceStartName
)
if
(
lpServiceStartName
)
service_set_string
(
&
val
[
n
++
],
sz
DependOnServic
e
,
lpServiceStartName
);
service_set_string
(
&
val
[
n
++
],
sz
ObjectNam
e
,
lpServiceStartName
);
r
=
service_write_values
(
hsvc
->
hkey
,
val
,
n
);
r
=
service_write_values
(
hsvc
->
hkey
,
val
,
n
);
...
...
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