Kaydet (Commit) 0bbf7900 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Do not fail for legacy rdb that only contains root key

üst c29b6b2a
......@@ -1318,7 +1318,12 @@ bool ServiceManager::readLegacyRdbFile(rtl::OUString const & uri) {
static_cast< cppu::OWeakObject * >(this));
}
RegistryKeyArray impls;
if (rootKey.openSubKeys("IMPLEMENTATIONS", impls) != REG_NO_ERROR) {
switch (rootKey.openSubKeys("IMPLEMENTATIONS", impls)) {
case REG_NO_ERROR:
break;
case REG_KEY_NOT_EXISTS:
return true;
default:
throw css::uno::DeploymentException(
"Failure reading legacy rdb file " + uri,
static_cast< cppu::OWeakObject * >(this));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment