summaryrefslogtreecommitdiff
path: root/source3/rpc_client/cli_reg.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-11-18 17:57:21 +0000
committerLuke Leighton <lkcl@samba.org>1999-11-18 17:57:21 +0000
commita394a4a8fa2c4c0ff03fbc5bc4ea925245ec1fed (patch)
tree37225bf66089879429df84fdc144bebe46bfebe4 /source3/rpc_client/cli_reg.c
parentccc8585567804d6a7e6f684a97d58871e2fd9f8a (diff)
downloadsamba-a394a4a8fa2c4c0ff03fbc5bc4ea925245ec1fed.tar.gz
samba-a394a4a8fa2c4c0ff03fbc5bc4ea925245ec1fed.tar.bz2
samba-a394a4a8fa2c4c0ff03fbc5bc4ea925245ec1fed.zip
updating reg_value_info() parsing code to take BUFFER2 instead of just
a char*. now copes with multiple types. (This used to be commit 3df7c903c5b70f336294a95ad864aedbacf544b0)
Diffstat (limited to 'source3/rpc_client/cli_reg.c')
-rw-r--r--source3/rpc_client/cli_reg.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/rpc_client/cli_reg.c b/source3/rpc_client/cli_reg.c
index 53d17bdefa..dbdf98dcf7 100644
--- a/source3/rpc_client/cli_reg.c
+++ b/source3/rpc_client/cli_reg.c
@@ -451,7 +451,7 @@ do a REG Query Info
****************************************************************************/
BOOL do_reg_query_info(struct cli_state *cli, uint16 fnum, POLICY_HND *hnd,
const char* val_name,
- char *type)
+ uint32 *type, BUFFER2 *buffer)
{
prs_struct rbuf;
prs_struct buf;
@@ -480,6 +480,9 @@ BOOL do_reg_query_info(struct cli_state *cli, uint16 fnum, POLICY_HND *hnd,
ZERO_STRUCT(r_o);
+ r_o.type = type;
+ r_o.uni_type = buffer;
+
reg_io_r_info("", &r_o, &rbuf, 0);
p = rbuf.offset != 0;
@@ -493,8 +496,6 @@ BOOL do_reg_query_info(struct cli_state *cli, uint16 fnum, POLICY_HND *hnd,
if (p)
{
valid_query = True;
- unibuf_to_ascii(type, (const char*)r_o.uni_type.buffer,
- MIN(r_o.uni_type.buf_len, sizeof(fstring)-1));
}
}