summaryrefslogtreecommitdiff
path: root/source3/librpc/gen_ndr/cli_winreg.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-08-15 10:30:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:29:49 -0500
commitfe068284e90ee78d78c6e52de45cec0479107185 (patch)
tree9b867f8b34799ac4e01d59a5f26ae53f16c1c437 /source3/librpc/gen_ndr/cli_winreg.c
parent716e01d97e91227a0d03cbd5e74e4a36efc223eb (diff)
downloadsamba-fe068284e90ee78d78c6e52de45cec0479107185.tar.gz
samba-fe068284e90ee78d78c6e52de45cec0479107185.tar.bz2
samba-fe068284e90ee78d78c6e52de45cec0479107185.zip
r24458: regenerate pidl output after pidl fixes:
fixes winreg_EnumValues() metze (This used to be commit cedf7022c5c61ed5eb49bb1cb24b062858f7d2fd)
Diffstat (limited to 'source3/librpc/gen_ndr/cli_winreg.c')
-rw-r--r--source3/librpc/gen_ndr/cli_winreg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/librpc/gen_ndr/cli_winreg.c b/source3/librpc/gen_ndr/cli_winreg.c
index 9b25a6113b..0f49274015 100644
--- a/source3/librpc/gen_ndr/cli_winreg.c
+++ b/source3/librpc/gen_ndr/cli_winreg.c
@@ -376,7 +376,7 @@ NTSTATUS rpccli_winreg_EnumValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
*type = *r.out.type;
}
if ( value ) {
- *value = *r.out.value;
+ memcpy(value, r.out.value, *r.in.size);
}
if ( size ) {
*size = *r.out.size;
@@ -628,7 +628,7 @@ NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
*type = *r.out.type;
}
if ( data ) {
- *data = *r.out.data;
+ memcpy(data, r.out.data, *r.in.data_size);
}
if ( data_size ) {
*data_size = *r.out.data_size;
@@ -1017,9 +1017,9 @@ NTSTATUS rpccli_winreg_QueryMultipleValues(struct rpc_pipe_client *cli, TALLOC_C
}
/* Return variables */
- *values = *r.out.values;
+ memcpy(values, r.out.values, r.in.num_values);
if ( buffer ) {
- *buffer = *r.out.buffer;
+ memcpy(buffer, r.out.buffer, *r.in.buffer_size);
}
*buffer_size = *r.out.buffer_size;