summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2002-07-04 13:18:56 +0000
committerGerald Carter <jerry@samba.org>2002-07-04 13:18:56 +0000
commit2a68e4529ad884e8c3800f9006bb1c2b18cfada4 (patch)
treec2965178a99137e579ba61d5241143df76358dfb
parent0c4afe075aa018ec2be10f36fd3f0a5af2a032f1 (diff)
downloadsamba-2a68e4529ad884e8c3800f9006bb1c2b18cfada4.tar.gz
samba-2a68e4529ad884e8c3800f9006bb1c2b18cfada4.tar.xz
samba-2a68e4529ad884e8c3800f9006bb1c2b18cfada4.zip
fixed the geyed out registry keys. Stupid typo on my part.
Now on to plug in the printing tdbs to the registry view.... jerry
-rw-r--r--source/rpc_parse/parse_reg.c6
-rw-r--r--source/rpc_server/srv_reg_nt.c24
2 files changed, 15 insertions, 15 deletions
diff --git a/source/rpc_parse/parse_reg.c b/source/rpc_parse/parse_reg.c
index e1913990ebb..1ebc1532f31 100644
--- a/source/rpc_parse/parse_reg.c
+++ b/source/rpc_parse/parse_reg.c
@@ -129,11 +129,11 @@ BOOL reg_io_q_open_hklm(char *desc, REG_Q_OPEN_HKLM * r_q, prs_struct *ps,
if (r_q->ptr != 0)
{
if (!prs_uint16("unknown_0", ps, depth, &(r_q->unknown_0)))
- return False;
+ return False;
if (!prs_uint16("unknown_1", ps, depth, &(r_q->unknown_1)))
- return False;
+ return False;
if (!prs_uint32("access_mask", ps, depth, &(r_q->access_mask)))
- return False;
+ return False;
}
return True;
diff --git a/source/rpc_server/srv_reg_nt.c b/source/rpc_server/srv_reg_nt.c
index 951e100486a..1960ebc821f 100644
--- a/source/rpc_server/srv_reg_nt.c
+++ b/source/rpc_server/srv_reg_nt.c
@@ -139,7 +139,7 @@ static int fetch_reg_keys( TDB_CONTEXT *tdb, char* key, char **subkeys )
if ( !buf ) {
DEBUG(5,("fetch_reg_keys: Failed to fetch any subkeys for [%s]\n", key));
- return -1;
+ return 0;
}
len = tdb_unpack( buf, buflen, "d", &num_items);
@@ -188,7 +188,7 @@ static int fetch_reg_keys_count( TDB_CONTEXT *tdb, char* key )
if ( !buf ) {
DEBUG(5,("fetch_reg_keys: Failed to fetch any subkeys for [%s]\n", key));
- return -1;
+ return 0;
}
len = tdb_unpack( buf, buflen, "d", &num_items);
@@ -480,21 +480,21 @@ static BOOL get_value_information( Registry_Key *key, uint32 *maxnum,
return False;
/* Hard coded key names first */
-
- if ( !strcmp(key->name, KEY_HKLM) || !strcmp(key->name, KEY_HKU) )
- {
- *maxnum = 0;
- *maxlen = 0;
- *maxsize = 0;
- return True;
- }
-
+ /* nothing has valuies right now */
+
+ *maxnum = 0;
+ *maxlen = 0;
+ *maxsize = 0;
+ return True;
+
+#if 0 /* JERRY */
/*
* FIXME!!! Need to add routines to look up values in other
* databases --jerry
*/
return False;
+#endif
}
/********************************************************************
@@ -670,7 +670,7 @@ NTSTATUS _reg_query_key(pipes_struct *p, REG_Q_QUERY_KEY *q_u, REG_R_QUERY_KEY *
if ( !get_value_information( regkey, &r_u->num_values, &r_u->max_valnamelen, &r_u->max_valbufsize ) )
return NT_STATUS_ACCESS_DENIED;
- r_u->sec_desc = 0x0; /* size for key's sec_desc */
+ r_u->sec_desc = 0x00000078; /* size for key's sec_desc */
/* Win9x set this to 0x0 since it does not keep timestamps.
Doing the same here for simplicity --jerry */