diff options
author | Jörg Barfurth <jb@openoffice.org> | 2002-04-11 13:00:02 +0000 |
---|---|---|
committer | Jörg Barfurth <jb@openoffice.org> | 2002-04-11 13:00:02 +0000 |
commit | 0f6209d3c2de71ead12f70cf8587284a2920203d (patch) | |
tree | 2bac32f23436eeb3dcf6a59cd2ef4e6d52166709 /configmgr/source/registry | |
parent | 9cdcbb07bb151f7f0fcc0b322a748ab358e81c16 (diff) |
#98628# Don't closeKey, if it is the root key
Diffstat (limited to 'configmgr/source/registry')
-rw-r--r-- | configmgr/source/registry/cfgregistrykey.cxx | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/configmgr/source/registry/cfgregistrykey.cxx b/configmgr/source/registry/cfgregistrykey.cxx index add71d419e..5fa10b0bea 100644 --- a/configmgr/source/registry/cfgregistrykey.cxx +++ b/configmgr/source/registry/cfgregistrykey.cxx @@ -2,9 +2,9 @@ * * $RCSfile: cfgregistrykey.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: jb $ $Date: 2001-07-05 17:05:48 $ + * last change: $Author: jb $ $Date: 2002-04-11 14:00:02 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1440,9 +1440,14 @@ void SAL_CALL OConfigurationRegistryKey::closeKey( ) throw(InvalidRegistryExcep checkValid(KAT_META); - m_xNode.clear(); - m_xParentNode.clear(); -// m_sLocalName = OUString(); - local name is const ... + bool bRoot = (m_sLocalName.getLength() == 0); + + if (!bRoot) // don't close, if this is the root key .. + { + m_xNode.clear(); + m_xParentNode.clear(); +// m_sLocalName = OUString(); - local name is const ... + } } //-------------------------------------------------------------------------- |