[NTOS]: Improve a bit CmpDeepCopyKeyInternal():
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Fri, 23 Jun 2017 17:33:44 +0000 (17:33 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Fri, 23 Jun 2017 17:33:44 +0000 (17:33 +0000)
commitab30fb1d6009411863c92f59745aebd5fb8288ae
tree9ec377c7da42415ec0ed1edbcff085b89f497f6f
parent3dae17b0e7133cb1cb8a638a77a4fa70a10d2ad0
[NTOS]: Improve a bit CmpDeepCopyKeyInternal():
- Normally getting the SrcNode and DestNode must succeed (checked with assert);
- Set the DestNode Flags member, in particular when this is the new root node of the saved registry hive;
- Copy the key class cell (OK), and the key security cell (currently done in a hackish way; proper way: call the CmpAssignSecurity* function);
- Add more clean-up on failure;
- Warn in code about the fact that CmpDeepCopyKeyInternal is recursive, and will easily exhaust kernel stack. This function will need to be reworked later...
CORE-10793 CORE-10796

svn path=/trunk/; revision=75171
reactos/ntoskrnl/config/cmapi.c