mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 14:34:10 +00:00
widl: Signal an error when trying to output an undefined interface into a typelib.
This commit is contained in:
parent
287253a5a7
commit
8c78994866
|
@ -2014,6 +2014,12 @@ static void add_interface_typeinfo(msft_typelib_t *typelib, type_t *interface)
|
||||||
if (-1 < interface->typelib_idx)
|
if (-1 < interface->typelib_idx)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!interface->details.iface)
|
||||||
|
{
|
||||||
|
error( "interface %s is referenced but not defined\n", interface->name );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (is_attr(interface->attrs, ATTR_DISPINTERFACE))
|
if (is_attr(interface->attrs, ATTR_DISPINTERFACE))
|
||||||
return add_dispinterface_typeinfo(typelib, interface);
|
return add_dispinterface_typeinfo(typelib, interface);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue