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
52f40a93
Commit
52f40a93
authored
Nov 01, 2004
by
Mike McCormack
Committed by
Alexandre Julliard
Nov 01, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start the reboot process in ExitWindowsEx.
parent
bb66e8a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletion
+29
-1
user.c
windows/user.c
+29
-1
No files found.
windows/user.c
View file @
52f40a93
...
...
@@ -413,6 +413,31 @@ static void USER_DoShutdown(void)
}
/***********************************************************************
* USER_StartRebootProcess (Internal)
*/
static
BOOL
USER_StartRebootProcess
(
void
)
{
WCHAR
winebootW
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
'b'
,
'o'
,
'o'
,
't'
,
0
};
PROCESS_INFORMATION
pi
;
STARTUPINFOW
si
;
BOOL
r
;
memset
(
&
si
,
0
,
sizeof
si
);
si
.
cb
=
sizeof
si
;
r
=
CreateProcessW
(
NULL
,
winebootW
,
NULL
,
NULL
,
FALSE
,
0
,
NULL
,
NULL
,
&
si
,
&
pi
);
if
(
r
)
{
CloseHandle
(
pi
.
hProcess
);
CloseHandle
(
pi
.
hThread
);
}
else
MESSAGE
(
"wine: Failed to start wineboot
\n
"
);
return
r
;
}
/***********************************************************************
* ExitWindowsEx (USER32.@)
*/
BOOL
WINAPI
ExitWindowsEx
(
UINT
flags
,
DWORD
reserved
)
...
...
@@ -446,7 +471,10 @@ BOOL WINAPI ExitWindowsEx( UINT flags, DWORD reserved )
/* USER_DoShutdown will kill all processes except the current process */
USER_DoShutdown
();
if
(
flags
&
EWX_REBOOT
)
USER_StartRebootProcess
();
if
(
result
)
ExitKernel16
();
return
TRUE
;
}
...
...
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