summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-09-21 18:09:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:00:58 -0500
commit8e0217da6f19a75250c27c5abaa000ee4d328267 (patch)
tree532e9bc639d4b16d111a635c47c2cd2934dfb2fb /source3/rpc_server
parenteab57a0a0fe90be464f5061691f57ca1da150885 (diff)
downloadsamba-8e0217da6f19a75250c27c5abaa000ee4d328267.tar.gz
samba-8e0217da6f19a75250c27c5abaa000ee4d328267.tar.bz2
samba-8e0217da6f19a75250c27c5abaa000ee4d328267.zip
r18790: Correct the IDL (still a bug in pidl) for QueryValue()
(This used to be commit 44851d7afa3112278faea41b470cc5d3cad97cb5)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_winreg_nt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_winreg_nt.c b/source3/rpc_server/srv_winreg_nt.c
index aea848fd17..4e3b3e1fb2 100644
--- a/source3/rpc_server/srv_winreg_nt.c
+++ b/source3/rpc_server/srv_winreg_nt.c
@@ -350,7 +350,7 @@ WERROR _winreg_OpenKey(pipes_struct *p, struct policy_handle *parent_handle, str
reg_reply_info
********************************************************************/
-WERROR _winreg_QueryValue(pipes_struct *p, struct policy_handle *handle, struct winreg_String value_name, enum winreg_Type *type, uint8_t **data, uint32_t *size, uint32_t *length)
+WERROR _winreg_QueryValue(pipes_struct *p, struct policy_handle *handle, struct winreg_String value_name, enum winreg_Type *type, uint8_t *data, uint32_t *size, uint32_t *length)
{
WERROR status = WERR_BADFILE;
char *name;
@@ -470,9 +470,11 @@ WERROR _winreg_QueryValue(pipes_struct *p, struct policy_handle *handle, struct
*size = regval_size( val );
*length = regval_size( val );
+#if 0
if ( (*data = talloc_memdup( p->mem_ctx, regval_data_p(val), *size )) == NULL ) {
status = WERR_NOMEM;
}
+#endif
*type = val->type;
}