mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:23:05 +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
1 changed files with 4 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue