diff options
Diffstat (limited to 'registry')
-rw-r--r-- | registry/source/regimpl.cxx | 2 |
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()) |