Commit d8d963a9 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

widl: Don't dereference if the referenced type is a user type.

parent 604350be
...@@ -1520,8 +1520,12 @@ static unsigned int write_nonsimple_pointer(FILE *file, const attr_list_t *attrs ...@@ -1520,8 +1520,12 @@ static unsigned int write_nonsimple_pointer(FILE *file, const attr_list_t *attrs
if (out_attr && !in_attr && pointer_type == RPC_FC_RP) if (out_attr && !in_attr && pointer_type == RPC_FC_RP)
flags |= RPC_FC_P_ONSTACK; flags |= RPC_FC_P_ONSTACK;
if (is_ptr(type) && is_declptr(type_pointer_get_ref(type))) if (is_ptr(type))
flags |= RPC_FC_P_DEREF; {
type_t *ref = type_pointer_get_ref(type);
if(is_declptr(ref) && !is_user_type(ref))
flags |= RPC_FC_P_DEREF;
}
print_file(file, 2, "0x%x, 0x%x,\t\t/* %s", print_file(file, 2, "0x%x, 0x%x,\t\t/* %s",
pointer_type, pointer_type,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment