mirror of
https://github.com/reactos/reactos.git
synced 2024-10-21 00:18:26 +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))]);
|
sizeof(PCH))]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PiShutdownProcessManager();
|
||||||
|
Waittime.QuadPart = (LONGLONG)-10000000; /* 1sec */
|
||||||
|
KeDelayExecutionThread(KernelMode, FALSE, &Waittime);
|
||||||
|
|
||||||
CmShutdownRegistry();
|
CmShutdownRegistry();
|
||||||
IoShutdownRegisteredFileSystems();
|
IoShutdownRegisteredFileSystems();
|
||||||
IoShutdownRegisteredDevices();
|
IoShutdownRegisteredDevices();
|
||||||
|
|
||||||
PiShutdownProcessManager();
|
|
||||||
MiShutdownMemoryManager();
|
MiShutdownMemoryManager();
|
||||||
|
|
||||||
Waittime.QuadPart = (LONGLONG)-10000000; /* 1sec */
|
|
||||||
KeDelayExecutionThread(KernelMode, FALSE, &Waittime);
|
|
||||||
|
|
||||||
if (Action == ShutdownNoReboot)
|
if (Action == ShutdownNoReboot)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue