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:
Hartmut Birr 2005-11-13 17:32:01 +00:00
parent 2fa81ffdfd
commit 80cd960aeb

View file

@ -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)
{