diff options
author | Gerald Carter <jerry@samba.org> | 2006-09-15 18:34:03 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:18:46 -0500 |
commit | dce0c9e4fd6c47f44694fd276c3a91b689312ccd (patch) | |
tree | 022ba395a844a83e4d8b8dcdcd82d85e1ff52b10 /source4/lib/registry | |
parent | 291c5ed53c9957d1da981fa39477b046b94fe192 (diff) | |
download | samba-dce0c9e4fd6c47f44694fd276c3a91b689312ccd.tar.gz samba-dce0c9e4fd6c47f44694fd276c3a91b689312ccd.tar.bz2 samba-dce0c9e4fd6c47f44694fd276c3a91b689312ccd.zip |
r18561: Fix [out] pointers in winreg IDL
(This used to be commit 694677dafefdd94fa0a9bed93efab70c528dcb26)
Diffstat (limited to 'source4/lib/registry')
-rw-r--r-- | source4/lib/registry/reg_backend_rpc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source4/lib/registry/reg_backend_rpc.c b/source4/lib/registry/reg_backend_rpc.c index 8e70998778..5e0cf303e0 100644 --- a/source4/lib/registry/reg_backend_rpc.c +++ b/source4/lib/registry/reg_backend_rpc.c @@ -152,7 +152,7 @@ static WERROR rpc_open_key(TALLOC_CTX *mem_ctx, const struct registry_key *h, co /* Then, open the handle using the hive */ memset(&r, 0, sizeof(struct winreg_OpenKey)); - r.in.handle = &(((struct rpc_key_data *)h->backend_data)->pol); + r.in.parent_handle = &(((struct rpc_key_data *)h->backend_data)->pol); init_winreg_String(&r.in.keyname, name); r.in.unknown = 0x00000000; r.in.access_mask = 0x02000000; @@ -230,7 +230,7 @@ static WERROR rpc_get_subkey_by_index(TALLOC_CTX *mem_ctx, const struct registry r.in.handle = &mykeydata->pol; r.in.enum_index = n; r.in.name = &namebuf; - r.in.class = &classbuf; + r.in.keyclass = &classbuf; r.in.last_changed_time = &change_time; r.out.name = &namebuf; @@ -249,7 +249,7 @@ static WERROR rpc_add_key(TALLOC_CTX *mem_ctx, const struct registry_key *parent struct winreg_CreateKey r; init_winreg_String(&r.in.name, name); - init_winreg_String(&r.in.class, NULL); + init_winreg_String(&r.in.keyclass, NULL); r.in.handle = parent->backend_data; r.out.new_handle = talloc(mem_ctx, struct policy_handle); @@ -292,10 +292,10 @@ static WERROR rpc_query_key(const struct registry_key *k) } if (W_ERROR_IS_OK(r.out.result)) { - mykeydata->num_subkeys = r.out.num_subkeys; - mykeydata->num_values = r.out.num_values; - mykeydata->max_valnamelen = r.out.max_valnamelen; - mykeydata->max_valdatalen = r.out.max_valbufsize; + mykeydata->num_subkeys = *r.out.num_subkeys; + mykeydata->num_values = *r.out.num_values; + mykeydata->max_valnamelen = *r.out.max_valnamelen; + mykeydata->max_valdatalen = *r.out.max_valbufsize; } return r.out.result; |