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

Alexandre Julliard julliard at winehq.org
Thu Dec 9 12:26:22 CST 2010


Module: wine
Branch: master
Commit: 8c78994866430c1e56212bba1e1c3ff3ce62e77d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8c78994866430c1e56212bba1e1c3ff3ce62e77d

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Dec  8 20:32:08 2010 +0100

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

---

 tools/widl/write_msft.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/tools/widl/write_msft.c b/tools/widl/write_msft.c
index 309145f..d762445 100644
--- a/tools/widl/write_msft.c
+++ b/tools/widl/write_msft.c
@@ -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);
 




More information about the wine-cvs mailing list