mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 06:33:01 +00:00
parent
c306ff4785
commit
1fbd004ffe
1 changed files with 9 additions and 1 deletions
|
@ -3497,6 +3497,9 @@ RunUSetup(VOID)
|
||||||
{
|
{
|
||||||
INPUT_RECORD Ir;
|
INPUT_RECORD Ir;
|
||||||
PAGE_NUMBER Page;
|
PAGE_NUMBER Page;
|
||||||
|
LARGE_INTEGER Time;
|
||||||
|
|
||||||
|
NtQuerySystemTime(&Time);
|
||||||
|
|
||||||
if (!CONSOLE_Init())
|
if (!CONSOLE_Init())
|
||||||
{
|
{
|
||||||
|
@ -3661,8 +3664,13 @@ RunUSetup(VOID)
|
||||||
/// DO NOT REMOVE!!!
|
/// DO NOT REMOVE!!!
|
||||||
DPRINT1("SYSREG_CHECKPOINT:USETUP_COMPLETE\n");
|
DPRINT1("SYSREG_CHECKPOINT:USETUP_COMPLETE\n");
|
||||||
|
|
||||||
/* Reboot */
|
|
||||||
FreeConsole();
|
FreeConsole();
|
||||||
|
|
||||||
|
/* Avoid bugcheck */
|
||||||
|
Time.QuadPart += 50000000;
|
||||||
|
NtDelayExecution(FALSE, &Time);
|
||||||
|
|
||||||
|
/* Reboot */
|
||||||
NtShutdownSystem(ShutdownReboot);
|
NtShutdownSystem(ShutdownReboot);
|
||||||
NtTerminateProcess(NtCurrentProcess(), 0);
|
NtTerminateProcess(NtCurrentProcess(), 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue