r4118: don't assume that "unsigned int" is the same type as uint32_t
authorAndrew Tridgell <tridge@samba.org>
Thu, 9 Dec 2004 12:54:01 +0000 (12:54 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:06:28 +0000 (13:06 -0500)
(This used to be commit 1ddab01d2ac0a51278cbd13d6d9369973c7a5b3a)

source4/rpc_server/winreg/rpc_winreg.c

index e012993bb758bd190fd749e3f4d2decdc43fe1da..3e9341b12284ad325e117648c9211613e91e743f 100644 (file)
@@ -215,7 +215,8 @@ static WERROR winreg_EnumValue(struct dcesrv_call_state *dce_call, TALLOC_CTX *m
                return result;
        }
        
-       r->out.type = &value->data_type;
+       r->out.type = talloc_p(mem_ctx, uint32_t);
+       *r->out.type = value->data_type;
        r->out.name_out.name = value->name;
        r->out.value = value->data_blk;
        r->out.size = talloc_p(mem_ctx, uint32_t);