Commit a3f649f7 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

widl: Issue an error if an out parameter is a conformant string.

parent cf45d599
......@@ -2527,10 +2527,11 @@ static void check_remoting_args(const var_t *func)
error_loc_info(&arg->loc_info, "out interface pointer \'%s\' of function \'%s\' is not a double pointer\n", arg->name, funcname);
break;
case TGT_STRING:
if (!is_array(type))
{
/* FIXME */
}
if (is_ptr(type) ||
(is_array(type) &&
(!type_array_has_conformance(type) ||
type_array_get_conformance(type)->type == EXPR_VOID)))
error_loc_info(&arg->loc_info, "out parameter \'%s\' of function \'%s\' cannot be an unsized string\n", arg->name, funcname);
break;
case TGT_INVALID:
/* already error'd before we get here */
......
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