Author: fireball
Date: Sat Nov 3 16:59:26 2007
New Revision: 30088
URL:
http://svn.reactos.org/svn/reactos?rev=30088&view=rev
Log:
- Don't bother flushing volatile hives.
Modified:
trunk/reactos/ntoskrnl/cm/registry.c
Modified: trunk/reactos/ntoskrnl/cm/registry.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cm/registry.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/cm/registry.c (original)
+++ trunk/reactos/ntoskrnl/cm/registry.c Sat Nov 3 16:59:26 2007
@@ -561,7 +561,9 @@
{
Hive = CONTAINING_RECORD(Entry, CMHIVE, HiveList);
- if (!(IsNoFileHive(Hive) || IsNoSynchHive(Hive)))
+ if (!(IsNoFileHive(Hive) ||
+ IsNoSynchHive(Hive) ||
+ (Hive->Hive.HiveFlags & HIVE_VOLATILE)))
{
/* Flush non-volatile hive */
CmiFlushRegistryHive(Hive);
@@ -595,7 +597,9 @@
{
Hive = CONTAINING_RECORD(Entry, CMHIVE, HiveList);
- if (!(IsNoFileHive(Hive) || IsNoSynchHive(Hive)))
+ if (!(IsNoFileHive(Hive) ||
+ IsNoSynchHive(Hive) ||
+ (Hive->Hive.HiveFlags & HIVE_VOLATILE)))
{
/* Flush non-volatile hive */
CmiFlushRegistryHive(Hive);