summaryrefslogtreecommitdiff
path: root/registry/source/registry.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'registry/source/registry.cxx')
-rw-r--r--registry/source/registry.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/registry/source/registry.cxx b/registry/source/registry.cxx
index 157887d9d28c..61b2c7ba1445 100644
--- a/registry/source/registry.cxx
+++ b/registry/source/registry.cxx
@@ -357,13 +357,12 @@ RegError REGISTRY_CALLTYPE reg_openRootKey(RegHandle hRegistry,
// reg_openRegistry
RegError REGISTRY_CALLTYPE reg_openRegistry(rtl_uString* registryName,
- RegHandle* phRegistry,
- RegAccessMode accessMode)
+ RegHandle* phRegistry)
{
RegError _ret;
ORegistry* pReg = new ORegistry();
- if ((_ret = pReg->initRegistry(registryName, accessMode)) != RegError::NO_ERROR)
+ if ((_ret = pReg->initRegistry(registryName, RegAccessMode::READONLY)) != RegError::NO_ERROR)
{
delete pReg;
*phRegistry = nullptr;