summaryrefslogtreecommitdiff
path: root/registry/source/regimpl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'registry/source/regimpl.cxx')
-rw-r--r--registry/source/regimpl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/registry/source/regimpl.cxx b/registry/source/regimpl.cxx
index 6bb013e36ca9..6dec181933ea 100644
--- a/registry/source/regimpl.cxx
+++ b/registry/source/regimpl.cxx
@@ -713,7 +713,7 @@ RegError ORegistry::closeKey(RegKeyHandle hKey)
REG_GUARD(m_mutex);
OUString const aKeyName (pKey->getName());
- if (!(m_openKeyTable.count(aKeyName) > 0))
+ if (m_openKeyTable.count(aKeyName) <= 0)
return RegError::KEY_NOT_OPEN;
if (pKey->isModified())