From: Hartmut Birr Date: Sun, 13 Nov 2005 17:32:01 +0000 (+0000) Subject: Shutdown the process manager before shutdown the registry. X-Git-Tag: backups/ros-branch-0_2_9@19949~696 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=80cd960aeba78d41b542437374eaaf8c84f903b0;hp=2fa81ffdfdf6ff29a4e29f623a83e73360743615;ds=sidebyside Shutdown the process manager before shutdown the registry. Running processes may have opened a registry handle. svn path=/trunk/; revision=19209 --- diff --git a/reactos/ntoskrnl/ex/power.c b/reactos/ntoskrnl/ex/power.c index 66f6bb3f45f..2c893f95f15 100644 --- a/reactos/ntoskrnl/ex/power.c +++ b/reactos/ntoskrnl/ex/power.c @@ -148,15 +148,16 @@ ShutdownThreadMain(PVOID Context) sizeof(PCH))]); } + PiShutdownProcessManager(); + Waittime.QuadPart = (LONGLONG)-10000000; /* 1sec */ + KeDelayExecutionThread(KernelMode, FALSE, &Waittime); + CmShutdownRegistry(); IoShutdownRegisteredFileSystems(); IoShutdownRegisteredDevices(); - PiShutdownProcessManager(); MiShutdownMemoryManager(); - Waittime.QuadPart = (LONGLONG)-10000000; /* 1sec */ - KeDelayExecutionThread(KernelMode, FALSE, &Waittime); if (Action == ShutdownNoReboot) {