mirror of
https://github.com/reactos/reactos.git
synced 2024-08-01 09:01:13 +00:00
Shutdown the process manager before shutdown the registry.
Running processes may have opened a registry handle. svn path=/trunk/; revision=19209
This commit is contained in:
parent
2fa81ffdfd
commit
80cd960aeb
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue