[NTOS:CONFIG]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 11 Jan 2016 00:37:44 +0000 (00:37 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 11 Jan 2016 00:37:44 +0000 (00:37 +0000)
commitd0eb702ec28a8efa8d685462ab755c812af9f308
treecfae63cd688ab11bfc70e2ef1ff96d16211ff1ba
parent4216e8389f1e8641dd70ff92aa0375fb635fff1f
[NTOS:CONFIG]
Remove a very old hack (that dated back from the Configuration Manager rewrite): now the hives are already correctly loaded in memory, therefore there is no need to call CmCreateRootNode after creating a hive, because the root node is subsequently initialized with calls to CmpCreateLinkNode. The comment saying that calls to CmCreateRootNode can be removed when CmpCreateLinkNode is used, is now in order. This means we correctly parse & mount the hives. The CmCreateRootNode function is now only used in the 'mkhive' tool in order to create file hives, since this tool needs to create new hives from nowhere (that's why also our bootloaders do not need this function: they only load & parse existing hive files).

The fact that this hack remained caused us hidden troubles: some hives (SAM, SOFTWARE) had "two" root keys: a first one that was unused (which was created by this hackish call), and the second one which was the one used (and was created by CmpCreateLinkNode as expected).

svn path=/trunk/; revision=70575
reactos/ntoskrnl/config/cmparse.c
reactos/ntoskrnl/config/cmsysini.c