Commit 050f6f38 authored by Alexandre Julliard's avatar Alexandre Julliard

widl: Only return a buffer size for fixed-size arrays.

parent 6c9cff2e
...@@ -3214,9 +3214,17 @@ static unsigned int get_required_buffer_size_type( ...@@ -3214,9 +3214,17 @@ static unsigned int get_required_buffer_size_type(
case TGT_ARRAY: case TGT_ARRAY:
if (get_pointer_fc(type, attrs, toplevel_param) == RPC_FC_RP) if (get_pointer_fc(type, attrs, toplevel_param) == RPC_FC_RP)
return type_array_get_dim(type) * {
get_required_buffer_size_type(type_array_get_element(type), name, switch (get_array_fc(type))
NULL, FALSE, alignment); {
case RPC_FC_SMFARRAY:
case RPC_FC_LGFARRAY:
return type_array_get_dim(type) *
get_required_buffer_size_type(type_array_get_element(type), name,
NULL, FALSE, alignment);
}
}
break;
default: default:
break; break;
......
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