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
2ba32473
Commit
2ba32473
authored
Sep 26, 2007
by
Mikolaj Zalewski
Committed by
Alexandre Julliard
Sep 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: The lpServiceStartName should default to LocalSystem for Win32 services.
parent
cb926759
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
service.c
dlls/advapi32/service.c
+4
-0
service.c
dlls/advapi32/tests/service.c
+1
-1
No files found.
dlls/advapi32/service.c
View file @
2ba32473
...
...
@@ -39,6 +39,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
advapi
);
static
const
WCHAR
szLocalSystem
[]
=
{
'L'
,
'o'
,
'c'
,
'a'
,
'l'
,
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
0
};
static
const
WCHAR
szServiceManagerKey
[]
=
{
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'\\'
,
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
'S'
,
'e'
,
't'
,
'\\'
,
'S'
,
'e'
,
'r'
,
'v'
,
'i'
,
'c'
,
'e'
,
's'
,
0
};
...
...
@@ -1342,6 +1343,9 @@ CreateServiceW( SC_HANDLE hSCManager, LPCWSTR lpServiceName,
return
NULL
;
}
if
(
!
lpServiceStartName
&&
(
dwServiceType
&
SERVICE_WIN32
))
lpServiceStartName
=
szLocalSystem
;
/* StartType can only be a single value (if several values are mixed the result is probably not what was intended) */
if
(
dwStartType
>
SERVICE_DISABLED
)
{
...
...
dlls/advapi32/tests/service.c
View file @
2ba32473
...
...
@@ -815,8 +815,8 @@ static void test_sequence(void)
todo_wine
{
ok
(
!
memcmp
(
config
->
lpDependencies
,
dependencies
,
sizeof
(
dependencies
)),
"Wrong string
\n
"
);
ok
(
!
strcmp
(
config
->
lpServiceStartName
,
localsystem
),
"Expected 'LocalSystem', got '%s'
\n
"
,
config
->
lpServiceStartName
);
}
ok
(
!
strcmp
(
config
->
lpServiceStartName
,
localsystem
),
"Expected 'LocalSystem', got '%s'
\n
"
,
config
->
lpServiceStartName
);
ok
(
!
strcmp
(
config
->
lpDisplayName
,
displayname
),
"Expected '%s', got '%s'
\n
"
,
displayname
,
config
->
lpDisplayName
);
SetLastError
(
0xdeadbeef
);
...
...
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