widl: Don't call the buffer sizer routine when the size is known already.
This commit is contained in:
parent
050f6f38d5
commit
bf9d2904dc
|
@ -3537,7 +3537,7 @@ static void write_remoting_arg(FILE *file, int indent, const var_t *func, const
|
|||
{
|
||||
int in_attr, out_attr, pointer_type;
|
||||
const type_t *type = var->type;
|
||||
unsigned int start_offset = type->typestring_offset;
|
||||
unsigned int alignment, start_offset = type->typestring_offset;
|
||||
|
||||
if (is_ptr(type) || is_array(type))
|
||||
pointer_type = get_pointer_fc(type, var->attrs, pass != PASS_RETURN);
|
||||
|
@ -3562,6 +3562,8 @@ static void write_remoting_arg(FILE *file, int indent, const var_t *func, const
|
|||
break;
|
||||
}
|
||||
|
||||
if (phase == PHASE_BUFFERSIZE && get_required_buffer_size( var, &alignment, pass )) return;
|
||||
|
||||
write_parameter_conf_or_var_exprs(file, indent, local_var_prefix, phase, var);
|
||||
|
||||
switch (typegen_detect_type(type, var->attrs, TDT_ALL_TYPES))
|
||||
|
|
Loading…
Reference in New Issue