summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cppuhelper/source/typedescriptionprovider.cxx6
-rw-r--r--registry/tools/reg2bin.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/cppuhelper/source/typedescriptionprovider.cxx b/cppuhelper/source/typedescriptionprovider.cxx
index b45cb3900b98..2d195180b717 100644
--- a/cppuhelper/source/typedescriptionprovider.cxx
+++ b/cppuhelper/source/typedescriptionprovider.cxx
@@ -1025,7 +1025,7 @@ struct Attribute {
rtl::OUString type;
bool bound;
bool readOnly;
- std::vector< rtl::OUString > getExceptions;
+ std::vector< rtl::OUString > getExceptions;
std::vector< rtl::OUString > setExceptions;
};
@@ -2501,7 +2501,7 @@ css::uno::Any Provider::getByHierarchicalName(rtl::OUString const & aName)
for (sal_uInt32 i = 0; i != n; ++i) {
params.push_back(file_->readNameLen(off, &off));
}
- n = file_->read32(off + 1);
+ n = file_->read32(off);
if (n > SAL_MAX_INT32) {
throw css::uno::DeploymentException(
("broken UNOIDL file: too many members of polymorphic"
@@ -2628,7 +2628,7 @@ css::uno::Any Provider::getByHierarchicalName(rtl::OUString const & aName)
getExcs.push_back(file_->readNameLen(off, &off));
}
std::vector< rtl::OUString > setExcs;
- if ((v & 0x02) != 0) {
+ if ((v & 0x02) == 0) {
m = file_->read32(off);
if (m > SAL_MAX_INT32) {
throw css::uno::DeploymentException(
diff --git a/registry/tools/reg2bin.cxx b/registry/tools/reg2bin.cxx
index d10ad2a13b9c..b45580947e99 100644
--- a/registry/tools/reg2bin.cxx
+++ b/registry/tools/reg2bin.cxx
@@ -1092,7 +1092,7 @@ sal_uInt64 writeMap(
if (j->bound) {
f |= 0x01;
}
- if (!j->readOnly) {
+ if (j->readOnly) {
f |= 0x02;
}
write8(file, f);