Do not disconnect a hive root key from its parent key. The object manager will do...
authorEric Kohl <eric.kohl@reactos.org>
Mon, 19 Jan 2004 16:18:33 +0000 (16:18 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Mon, 19 Jan 2004 16:18:33 +0000 (16:18 +0000)
svn path=/trunk/; revision=7769

reactos/ntoskrnl/cm/registry.c

index 07ef542..bf658cf 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: registry.c,v 1.119 2004/01/12 12:52:27 ekohl Exp $
+/* $Id: registry.c,v 1.120 2004/01/19 16:18:33 ekohl Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
@@ -663,7 +663,6 @@ CmiDisconnectHive (IN POBJECT_ATTRIBUTES KeyObjectAttributes,
     }
 
   Hive = KeyObject->RegistryHive;
-  CmiRemoveKeyFromList (KeyObject);
 
   /* Dereference KeyObject twice to delete it */
   ObDereferenceObject (KeyObject);