summaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-04-13 11:18:06 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-04-13 11:18:06 +0000
commit313c5da32834217cbaa7231880553acebd715360 (patch)
treed5c4509d928561009a7ff90478f772c41217bed6 /registry
parent8a6b814c98b0f1524c73ab43e81eee3bd57c9bfd (diff)
INTEGRATION: CWS unopkg1 (1.2.112); FILE MERGED
2004/04/02 09:59:48 dbo 1.2.112.1: fixing sub key bugs
Diffstat (limited to 'registry')
-rw-r--r--registry/source/regkey.cxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/registry/source/regkey.cxx b/registry/source/regkey.cxx
index 8ac21ef64..4f6d4290e 100644
--- a/registry/source/regkey.cxx
+++ b/registry/source/regkey.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: regkey.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: jsc $ $Date: 2001-01-10 10:15:54 $
+ * last change: $Author: hr $ $Date: 2004-04-13 12:18:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -208,12 +208,14 @@ RegError REGISTRY_CALLTYPE openSubKeys(RegKeyHandle hKey,
if (pKey->isDeleted())
{
- pphSubKeys = NULL;
+ *pphSubKeys = NULL;
+ *pnSubKeys = 0;
return REG_INVALID_KEY;
}
} else
{
- pphSubKeys = NULL;
+ *pphSubKeys = NULL;
+ *pnSubKeys = 0;
return REG_INVALID_KEY;
}
@@ -228,7 +230,7 @@ RegError REGISTRY_CALLTYPE closeSubKeys(RegKeyHandle* phSubKeys,
{
RegError _ret = REG_NO_ERROR;
- if (phSubKeys)
+ if (phSubKeys != 0 && nSubKeys != 0)
{
ORegistry* pReg = NULL;