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
d478cc42
Commit
d478cc42
authored
Apr 02, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineboot: Make services.exe inherit the wineboot event to keep it alive.
parent
9bc84d81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
wineboot.c
programs/wineboot/wineboot.c
+7
-2
No files found.
programs/wineboot/wineboot.c
View file @
d478cc42
...
...
@@ -557,7 +557,7 @@ static BOOL start_services_process(void)
strcatW
(
path
,
services
);
ZeroMemory
(
&
si
,
sizeof
(
si
));
si
.
cb
=
sizeof
(
si
);
if
(
!
CreateProcessW
(
path
,
path
,
NULL
,
NULL
,
FALS
E
,
0
,
NULL
,
NULL
,
&
si
,
&
pi
))
if
(
!
CreateProcessW
(
path
,
path
,
NULL
,
NULL
,
TRU
E
,
0
,
NULL
,
NULL
,
&
si
,
&
pi
))
{
WINE_ERR
(
"Couldn't start services.exe: error %u
\n
"
,
GetLastError
());
return
FALSE
;
...
...
@@ -749,6 +749,7 @@ int main( int argc, char *argv[] )
int
optc
;
int
end_session
=
0
,
force
=
0
,
init
=
0
,
kill
=
0
,
restart
=
0
,
shutdown
=
0
;
HANDLE
event
;
SECURITY_ATTRIBUTES
sa
;
GetWindowsDirectoryW
(
windowsdir
,
MAX_PATH
);
if
(
!
SetCurrentDirectoryW
(
windowsdir
)
)
...
...
@@ -781,7 +782,11 @@ int main( int argc, char *argv[] )
if
(
shutdown
)
return
0
;
event
=
CreateEventW
(
NULL
,
TRUE
,
FALSE
,
wineboot_eventW
);
sa
.
nLength
=
sizeof
(
sa
);
sa
.
lpSecurityDescriptor
=
NULL
;
sa
.
bInheritHandle
=
TRUE
;
/* so that services.exe inherits it */
event
=
CreateEventW
(
&
sa
,
TRUE
,
FALSE
,
wineboot_eventW
);
ResetEvent
(
event
);
/* in case this is a restart */
wininit
();
...
...
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