winreg: fix winreg_EnumValue callers.
[metze/samba/wip.git] / source4 / lib / registry / rpc.c
index 8096c8fbfe6382069a64ece6fd851d50af6699f5..0cb6b118a582790f9564c8c71392973fa410b0ac 100644 (file)
@@ -193,7 +193,7 @@ static WERROR rpc_get_value_by_index(TALLOC_CTX *mem_ctx,
 {
        struct rpc_key *mykeydata = talloc_get_type(parent, struct rpc_key);
        struct winreg_EnumValue r;
-       struct winreg_StringBuf name;
+       struct winreg_ValNameBuf name;
        uint8_t value;
        uint32_t val_size = MAX_VALSIZE;
        uint32_t zero = 0;