summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/reg_db.c4
-rw-r--r--source3/rpc_server/srv_reg_nt.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/registry/reg_db.c b/source3/registry/reg_db.c
index 773a4f7fb5..74012263e5 100644
--- a/source3/registry/reg_db.c
+++ b/source3/registry/reg_db.c
@@ -252,8 +252,8 @@ int regdb_fetch_reg_keys( char* key, REGSUBKEY_CTR *ctr )
buflen = dbuf.dsize;
if ( !buf ) {
- DEBUG(5,("regdb_fetch_reg_keys: Failed to fetch any subkeys for [%s]\n", key));
- return 0;
+ DEBUG(5,("regdb_fetch_reg_keys: tdb lookup failed to locate key [%s]\n", key));
+ return -1;
}
len = tdb_unpack( buf, buflen, "d", &num_items);
diff --git a/source3/rpc_server/srv_reg_nt.c b/source3/rpc_server/srv_reg_nt.c
index 3afb2a2c81..2154b5a38a 100644
--- a/source3/rpc_server/srv_reg_nt.c
+++ b/source3/rpc_server/srv_reg_nt.c
@@ -127,7 +127,7 @@ static NTSTATUS open_registry_key(pipes_struct *p, POLICY_HND *hnd, REGISTRY_KEY
/* don't really know what to return here */
- result = NT_STATUS_ACCESS_DENIED;
+ result = NT_STATUS_NO_SUCH_FILE;
}
else {
/*