[NTOSKRNL]

- Lock the registry before flushing hives to avoid, among other things, use of an ERESOURCE without being inside a critical region

svn path=/trunk/; revision=54694
This commit is contained in:
Cameron Gutman 2011-12-19 09:33:40 +00:00
parent b3677f395e
commit e873fe63ce

View file

@ -1933,9 +1933,13 @@ VOID
NTAPI
CmShutdownSystem(VOID)
{
/* Kill the workers and flush all hives */
/* Kill the workers */
if (!CmFirstTime) CmpShutdownWorkers();
/* Flush all hives */
CmpLockRegistryExclusive();
CmpDoFlushAll(TRUE);
CmpUnlockRegistry();
}
VOID