Do not disconnect a hive root key from its parent key. The object manager will do this when the root key object gets closed.

svn path=/trunk/; revision=7769
This commit is contained in:
Eric Kohl 2004-01-19 16:18:33 +00:00
parent 6e45aaa48b
commit c671ada626

View 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);