summaryrefslogtreecommitdiff
path: root/source3/rpc_client/cli_reg.c
diff options
context:
space:
mode:
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));
}
}