summaryrefslogtreecommitdiff
path: root/editors/openoffice-1.1-devel
diff options
context:
space:
mode:
authorMartin Blapp <mbr@FreeBSD.org>2002-03-11 09:17:12 +0000
committerMartin Blapp <mbr@FreeBSD.org>2002-03-11 09:17:12 +0000
commitcb4a584073240e4e39c0510e50e47663e8b3f312 (patch)
treed0838fa92e6fc02342dee46765b90b1a132ef17a /editors/openoffice-1.1-devel
parentRemove unnecessary #defines (diff)
If nSubKeys is not defined, just return. Fix from Tim Tretyak <timothy@umc.com.ua>
Notes
Notes: svn path=/head/; revision=55848
Diffstat (limited to 'editors/openoffice-1.1-devel')
-rw-r--r--editors/openoffice-1.1-devel/files/patch-registry+source+regkey.cxx12
-rw-r--r--editors/openoffice-1.1-devel/files/patch-registry::source::regkey.cxx12
2 files changed, 24 insertions, 0 deletions
diff --git a/editors/openoffice-1.1-devel/files/patch-registry+source+regkey.cxx b/editors/openoffice-1.1-devel/files/patch-registry+source+regkey.cxx
new file mode 100644
index 000000000000..fad069f83f14
--- /dev/null
+++ b/editors/openoffice-1.1-devel/files/patch-registry+source+regkey.cxx
@@ -0,0 +1,12 @@
+--- ../registry/source/regkey.cxx.orig Mon Mar 11 01:27:56 2002
++++ ../registry/source/regkey.cxx Mon Mar 11 01:28:51 2002
+@@ -228,6 +228,9 @@
+ {
+ RegError _ret = REG_NO_ERROR;
+
++ if (!nSubKeys)
++ return REG_NO_ERROR;
++
+ if (phSubKeys)
+ {
+ ORegistry* pReg = NULL;
diff --git a/editors/openoffice-1.1-devel/files/patch-registry::source::regkey.cxx b/editors/openoffice-1.1-devel/files/patch-registry::source::regkey.cxx
new file mode 100644
index 000000000000..fad069f83f14
--- /dev/null
+++ b/editors/openoffice-1.1-devel/files/patch-registry::source::regkey.cxx
@@ -0,0 +1,12 @@
+--- ../registry/source/regkey.cxx.orig Mon Mar 11 01:27:56 2002
++++ ../registry/source/regkey.cxx Mon Mar 11 01:28:51 2002
+@@ -228,6 +228,9 @@
+ {
+ RegError _ret = REG_NO_ERROR;
+
++ if (!nSubKeys)
++ return REG_NO_ERROR;
++
+ if (phSubKeys)
+ {
+ ORegistry* pReg = NULL;