- Fix registry lock leakages in CmpDoOpen in failure cases.
authorAleksey Bragin <aleksey@reactos.org>
Mon, 22 Dec 2008 18:47:38 +0000 (18:47 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Mon, 22 Dec 2008 18:47:38 +0000 (18:47 +0000)
commit4054e57321804623e626f92decb48f22eba791f9
treec0d920769c50a58d1446aedd47fe5be19be815df
parent35fab756b460bff5fe85e706a47d2ad9b57aa3cc
- Fix registry lock leakages in CmpDoOpen in failure cases.
- Add support for a special case of opening existing (cached) KCBs by CmpDoOpen.
- Specify a flag for that case in one specific case inside CmpParseKey, which allows us to get rid of the "\\REGISTRY" hack inside the code, fixes the 'Kcb->RefCount == 1' assertion failure, and certainly fixes registry-related regression tests. There might be some side effects in theory, but since this hack only applied to the root key, they shouldn't happen. Thanks to Stefan for helping in debugging and a testcase.

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