diff options
author | Jörg Budischewski <jbu@openoffice.org> | 2002-11-12 15:22:19 +0000 |
---|---|---|
committer | Jörg Budischewski <jbu@openoffice.org> | 2002-11-12 15:22:19 +0000 |
commit | 002cc26502d5ef1cdf209cb1f2996e9d316aadc6 (patch) | |
tree | 18d994f937da2bdc7404a36df02f6f35bc016309 /registry/source/regimpl.cxx | |
parent | f2e2383a8c04214757c23437de7840e16ae884b6 (diff) |
#105028# ORegKey initially has a refcount of 1, so acquiring after creation is wrong, this has been fixed
Diffstat (limited to 'registry/source/regimpl.cxx')
-rw-r--r-- | registry/source/regimpl.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/registry/source/regimpl.cxx b/registry/source/regimpl.cxx index 37561e65f72a..88e452da0b15 100644 --- a/registry/source/regimpl.cxx +++ b/registry/source/regimpl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: regimpl.cxx,v $ * - * $Revision: 1.14 $ + * $Revision: 1.15 $ * - * last change: $Author: jbu $ $Date: 2002-10-23 15:27:47 $ + * last change: $Author: jbu $ $Date: 2002-11-12 16:22:19 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -758,8 +758,8 @@ RegError ORegistry::openKeyWithoutLink( pRet = ii->second; OSL_ASSERT( pRet ); *phOpenKey = pRet; + pRet->acquire(); } - pRet->acquire(); return REG_NO_ERROR; } @@ -803,8 +803,8 @@ RegError ORegistry::openKey(RegKeyHandle hKey, const OUString& keyName, *phOpenKey = handle; return REG_NO_ERROR; } - sFullKeyName = resolveLinks(pKey, keyName); + sFullKeyName = resolveLinks(pKey, keyName); if ( !sFullKeyName.getLength() ) return REG_DETECT_RECURSION; |