mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 12:29:56 +00: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:
parent
b3677f395e
commit
e873fe63ce
1 changed files with 5 additions and 1 deletions
|
@ -1933,9 +1933,13 @@ VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
CmShutdownSystem(VOID)
|
CmShutdownSystem(VOID)
|
||||||
{
|
{
|
||||||
/* Kill the workers and flush all hives */
|
/* Kill the workers */
|
||||||
if (!CmFirstTime) CmpShutdownWorkers();
|
if (!CmFirstTime) CmpShutdownWorkers();
|
||||||
|
|
||||||
|
/* Flush all hives */
|
||||||
|
CmpLockRegistryExclusive();
|
||||||
CmpDoFlushAll(TRUE);
|
CmpDoFlushAll(TRUE);
|
||||||
|
CmpUnlockRegistry();
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
|
Loading…
Reference in a new issue