Commit 361a39ff authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

widl: Issue an error if a context handle variable is declared outside of a function.

parent 50534b87
......@@ -2439,7 +2439,11 @@ static void check_field_common(const type_t *container_type,
}
case TGT_CTXT_HANDLE:
case TGT_CTXT_HANDLE_POINTER:
/* FIXME */
if (type_get_type(container_type) != TYPE_FUNCTION)
error_loc_info(&arg->loc_info,
"%s \'%s\' of %s \'%s\' cannot be a context handle\n",
var_type, arg->name, container_type_name,
container_name);
break;
case TGT_STRING:
{
......
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