diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-12-13 11:03:03 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-12-13 11:05:53 +0100 |
commit | 53fbd30b3cd6465251b1b07f4728813d524fcd82 (patch) | |
tree | e34ac7ab366dab5778f509a2a5fddffef1b7dfac /registry | |
parent | d04ee940a04922f6fc511882cff956a03b39583b (diff) |
Make registry's mergeKey fail if it cannot process regFileName
...so that regmerge fails for bad regfile arguments. Add -v to the regmerge
calls in update-rdb.sh so that an error message is printed in case of failure.
Change-Id: I6613b9756b4e5628772541580938f6c80fd9bc9e
Diffstat (limited to 'registry')
-rw-r--r-- | registry/source/registry.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/registry/source/registry.cxx b/registry/source/registry.cxx index 5851199057a3..345631ad1773 100644 --- a/registry/source/registry.cxx +++ b/registry/source/registry.cxx @@ -361,7 +361,7 @@ static RegError REGISTRY_CALLTYPE mergeKey(RegHandle hReg, return _ret; _ret = pReg->loadKey(pNewKey, regFileName, bWarnings, bReport); - if (_ret == REG_MERGE_ERROR || (_ret == REG_MERGE_CONFLICT && bWarnings)) + if (_ret != REG_NO_ERROR && (_ret != REG_MERGE_CONFLICT || bWarnings)) { if (pNewKey != pKey) (void) pKey->closeKey(pNewKey); |