Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sam Joan Roque-Worcel
wine
Commits
52f40a93
Commit
52f40a93
authored
20 years ago
by
Michael McCormack
Committed by
Alexandre Julliard
20 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Start the reboot process in ExitWindowsEx.
parent
bb66e8a1
Branches
Branches containing commit
Tags
wine-960131
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
windows/user.c
+29
-1
29 additions, 1 deletion
windows/user.c
with
29 additions
and
1 deletion
windows/user.c
+
29
−
1
View file @
52f40a93
...
...
@@ -412,6 +412,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.@)
*/
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment