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
d9c9bfd7
Commit
d9c9bfd7
authored
Sep 27, 2004
by
Alexander Yaworsky
Committed by
Alexandre Julliard
Sep 27, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start only first service in the service table.
parent
17e22fba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
21 deletions
+13
-21
service.c
dlls/advapi32/service.c
+13
-21
No files found.
dlls/advapi32/service.c
View file @
d9c9bfd7
...
...
@@ -289,13 +289,14 @@ StartServiceCtrlDispatcherA( LPSERVICE_TABLE_ENTRYA servent )
if
(
!
read_scm_lock_data
(
service_name
)
)
{
/* FIXME: Instead of exiting we
fall through and
allow
/* FIXME: Instead of exiting we allow
service to be executed as ordinary program.
This behaviour was specially introduced in the patch
submitted against revision 1.45 and so preserved here.
*/
FIXME
(
"should fail with ERROR_FAILED_SERVICE_CONTROLLER_CONNECT
\n
"
);
goto
run_service
;
servent
->
lpServiceProc
(
0
,
NULL
);
return
TRUE
;
}
seb
=
open_seb_shmem
(
service_name
,
&
hServiceShmem
);
...
...
@@ -315,17 +316,12 @@ StartServiceCtrlDispatcherA( LPSERVICE_TABLE_ENTRYA servent )
for
(
i
=
0
;
i
<
dwNumServiceArgs
;
i
++
)
lpArgVecA
[
i
]
=
HEAP_strdupWtoA
(
GetProcessHeap
(),
0
,
lpArgVecW
[
i
]);
run_service:
/* FIXME: should we blindly start all services? */
while
(
servent
->
lpServiceName
)
{
TRACE
(
"%s at %p)
\n
"
,
debugstr_a
(
servent
->
lpServiceName
),
servent
);
fpMain
=
servent
->
lpServiceProc
;
/* FIXME: find service entry by name if SERVICE_WIN32_SHARE_PROCESS */
TRACE
(
"%s at %p)
\n
"
,
debugstr_a
(
servent
->
lpServiceName
),
servent
);
fpMain
=
servent
->
lpServiceProc
;
/* try to start the service */
fpMain
(
dwNumServiceArgs
,
lpArgVecA
);
servent
++
;
}
/* try to start the service */
fpMain
(
dwNumServiceArgs
,
lpArgVecA
);
done:
if
(
dwNumServiceArgs
)
...
...
@@ -377,16 +373,12 @@ StartServiceCtrlDispatcherW( LPSERVICE_TABLE_ENTRYW servent )
lpServiceArgVectors
[
0
]
=
service_name
;
dwNumServiceArgs
=
seb
->
argc
+
1
;
/* FIXME: should we blindly start all services? */
while
(
servent
->
lpServiceName
)
{
TRACE
(
"%s at %p)
\n
"
,
debugstr_w
(
servent
->
lpServiceName
),
servent
);
fpMain
=
servent
->
lpServiceProc
;
/* FIXME: find service entry by name if SERVICE_WIN32_SHARE_PROCESS */
TRACE
(
"%s at %p)
\n
"
,
debugstr_w
(
servent
->
lpServiceName
),
servent
);
fpMain
=
servent
->
lpServiceProc
;
/* try to start the service */
fpMain
(
dwNumServiceArgs
,
lpServiceArgVectors
);
servent
++
;
}
/* try to start the service */
fpMain
(
dwNumServiceArgs
,
lpServiceArgVectors
);
HeapFree
(
GetProcessHeap
(),
0
,
lpServiceArgVectors
);
UnmapViewOfFile
(
seb
);
...
...
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