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

This commit is contained in:
Rob Shearman 2010-03-23 13:33:24 +00:00 committed by Alexandre Julliard
parent 50534b87d0
commit 361a39fff3
1 changed files with 5 additions and 1 deletions

View File

@ -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:
{