widl: Fix the type offset for generated conformant string calls.

This commit is contained in:
Robert Shearman 2006-04-03 16:27:17 +01:00 committed by Alexandre Julliard
parent 62c25c5a51
commit e2ea2b5891
1 changed files with 2 additions and 2 deletions

View File

@ -1591,11 +1591,11 @@ void write_remoting_arguments(FILE *file, int indent, const func_t *func,
fprintf(file, ";\n");
}
/* FIXME: these can't both be correct */
if (phase == PHASE_FREE)
print_phase_function(file, indent, "Pointer", phase, var->name, *type_offset);
else
print_phase_function(file, indent, "ConformantString", phase, var->name, *type_offset);
print_phase_function(file, indent, "ConformantString", phase, var->name,
*type_offset + (has_size ? 4 : 2));
}
}
else if (is_array_type(var->attrs, var->ptr_level, var->array))