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