widl: Signal an error when trying to output an undefined interface into a typelib.

This commit is contained in:
Alexandre Julliard 2010-12-08 20:32:08 +01:00
parent 287253a5a7
commit 8c78994866
1 changed files with 6 additions and 0 deletions

View File

@ -2014,6 +2014,12 @@ static void add_interface_typeinfo(msft_typelib_t *typelib, type_t *interface)
if (-1 < interface->typelib_idx)
return;
if (!interface->details.iface)
{
error( "interface %s is referenced but not defined\n", interface->name );
return;
}
if (is_attr(interface->attrs, ATTR_DISPINTERFACE))
return add_dispinterface_typeinfo(typelib, interface);