mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user