Author: dgorbachev
Date: Tue Mar 13 19:08:49 2007
New Revision: 26071
URL:
http://svn.reactos.org/svn/reactos?rev=26071&view=rev
Log:
Fix bug #1872
Modified:
trunk/reactos/base/setup/usetup/interface/usetup.c
Modified: trunk/reactos/base/setup/usetup/interface/usetup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/interfac…
==============================================================================
--- trunk/reactos/base/setup/usetup/interface/usetup.c (original)
+++ trunk/reactos/base/setup/usetup/interface/usetup.c Tue Mar 13 19:08:49 2007
@@ -3497,6 +3497,9 @@
{
INPUT_RECORD Ir;
PAGE_NUMBER Page;
+ LARGE_INTEGER Time;
+
+ NtQuerySystemTime(&Time);
if (!CONSOLE_Init())
{
@@ -3661,8 +3664,13 @@
/// DO NOT REMOVE!!!
DPRINT1("SYSREG_CHECKPOINT:USETUP_COMPLETE\n");
+ FreeConsole();
+
+ /* Avoid bugcheck */
+ Time.QuadPart += 50000000;
+ NtDelayExecution(FALSE, &Time);
+
/* Reboot */
- FreeConsole();
NtShutdownSystem(ShutdownReboot);
NtTerminateProcess(NtCurrentProcess(), 0);
}