Author: hbelusca
Date: Fri Jun 16 21:02:27 2017
New Revision: 75065
URL:
http://svn.reactos.org/svn/reactos?rev=75065&view=rev
Log:
[NTOS]: Reorder the destruction code in CmpDestroyHive() to make it similar to the one in
CmUnloadKey(). Same remark for a comment in NtUnloadKey2() too.
Modified:
trunk/reactos/ntoskrnl/config/cminit.c
trunk/reactos/ntoskrnl/config/ntapi.c
Modified: trunk/reactos/ntoskrnl/config/cminit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cminit.c?r…
==============================================================================
--- trunk/reactos/ntoskrnl/config/cminit.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/config/cminit.c [iso-8859-1] Fri Jun 16 21:02:27 2017
@@ -234,18 +234,18 @@
RemoveEntryList(&CmHive->HiveList);
ExReleasePushLock(&CmpHiveListHeadLock);
+ /* Destroy the security descriptor cache */
+ CmpDestroySecurityCache(CmHive);
+
+ /* Destroy the view list */
+ CmpDestroyHiveViewList(CmHive);
+
/* Delete the flusher lock */
ExDeleteResourceLite(CmHive->FlusherLock);
ExFreePoolWithTag(CmHive->FlusherLock, TAG_CMHIVE);
/* Delete the view lock */
ExFreePoolWithTag(CmHive->ViewLock, TAG_CMHIVE);
-
- /* Destroy the security descriptor cache */
- CmpDestroySecurityCache(CmHive);
-
- /* Destroy the view list */
- CmpDestroyHiveViewList(CmHive);
/* Free the hive storage */
HvFree(&CmHive->Hive);
Modified: trunk/reactos/ntoskrnl/config/ntapi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/ntapi.c?re…
==============================================================================
--- trunk/reactos/ntoskrnl/config/ntapi.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/config/ntapi.c [iso-8859-1] Fri Jun 16 21:02:27 2017
@@ -1521,7 +1521,7 @@
{
if (Flags != REG_FORCE_UNLOAD)
{
- /* Release two KCBs lock */
+ /* Release the KCB locks */
CmpReleaseTwoKcbLockByKey(ChildConv, ParentConv);
/* Release the hive loading lock */