winreg.idl: Sync ref change from Samba 3.
authorJelmer Vernooij <jelmer@samba.org>
Wed, 15 Oct 2008 15:34:55 +0000 (17:34 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Wed, 15 Oct 2008 15:34:55 +0000 (17:34 +0200)
source3/librpc/idl/winreg.idl
source4/lib/registry/rpc.c
source4/librpc/idl/winreg.idl
source4/rpc_server/winreg/rpc_winreg.c
source4/torture/ndr/winreg.c
source4/torture/rpc/winreg.c

index ba9e93564075d4453e4ed035bab2ebedc561dcb6..028131e8f25840ab6707ba4486893cf7d2edd433 100644 (file)
@@ -2,7 +2,7 @@
   winreg interface definition
 */
 
-import "lsa.idl", "initshutdown.idl", "security.idl";
+import "lsa.idl", "security.idl";
 
 [ 
   uuid("338cd001-2244-31f1-aaaa-900038001003"),
index 6429a390db708a61f5c66229c1cbe2072a212cbd..6563fe02b0d22068cd6624615dd497909718bb30 100644 (file)
@@ -260,7 +260,7 @@ static WERROR rpc_get_value_by_name(TALLOC_CTX *mem_ctx,
 
        ZERO_STRUCT(r);
        r.in.handle = &mykeydata->pol;
-       r.in.value_name = name;
+       r.in.value_name = &name;
        r.in.type = type;
        r.in.data = &value;
        r.in.size = &val_size;
index dfa0f654d07f8a2aeb65b9157c43cfe9ed2c381a..c4b33a3db63626ea7226a405f02a4e474d02119c 100644 (file)
@@ -240,7 +240,7 @@ import "lsa.idl", "security.idl";
        /* Function: 0x11 */
        [public] WERROR winreg_QueryValue(
                [in,ref] policy_handle *handle,
-               [in] winreg_String value_name,
+               [in,ref] winreg_String *value_name,
                [in,out,unique] winreg_Type *type,
                [in,out,unique,size_is(*size),length_is(*length)] uint8 *data,
                [in,out,unique] uint32 *size,
index 22c60c354c5002b14a5469306212c5feb7f86360..3b226c8341e1bfcc87da8bb6b9e8f6014108330d 100644 (file)
@@ -457,7 +457,7 @@ static WERROR dcesrv_winreg_QueryValue(struct dcesrv_call_state *dce_call,
        case SECURITY_USER:
                key = h->data;
                
-               result = reg_key_get_value_by_name(mem_ctx, key, r->in.value_name.name,
+               result = reg_key_get_value_by_name(mem_ctx, key, r->in.value_name->name,
                                                   &value_type, &value_data);
                
                if (!W_ERROR_IS_OK(result)) {
index ab256a7152bba302fa4169e0da4f24c182ec75e0..1bfe50e740d404d46b7a9b1285259c131a810c88 100644 (file)
@@ -197,7 +197,7 @@ static const uint8_t queryvalue_in_data[] = {
 static bool queryvalue_in_check(struct torture_context *tctx, 
                                                                  struct winreg_QueryValue *r)
 {
-       torture_assert_str_equal(tctx, r->in.value_name.name, "HOMEPATH", "name");
+       torture_assert_str_equal(tctx, r->in.value_name->name, "HOMEPATH", "name");
        torture_assert_int_equal(tctx, *r->in.type, 0, "type");
        torture_assert_int_equal(tctx, *r->in.size, 4095, "size");
        torture_assert_int_equal(tctx, *r->in.length, 0, "length");
index aa81aa011b74a51bbd619729f9a4fa62fa6f8e61..759e9e6528e7e0a8e34ca12acf58477e0b3f173a 100644 (file)
@@ -1539,7 +1539,8 @@ static bool test_QueryValue(struct dcerpc_pipe *p,
        ZERO_STRUCT(r);
        r.in.handle = handle;
        r.in.data = NULL;
-       r.in.value_name.name = valuename;
+       r.in.value_name = talloc_zero(tctx, struct winreg_String);
+       r.in.value_name->name = valuename;
        r.in.type = &zero_type;
        r.in.size = &offered;
        r.in.length = &zero;