widl: Output the correct value for TableSize in ProxyFileInfo.
diff --git a/tools/widl/proxy.c b/tools/widl/proxy.c
index 65bb1fa..5354c27 100644
--- a/tools/widl/proxy.c
+++ b/tools/widl/proxy.c
@@ -661,7 +661,7 @@
   c = 0;
   if (ifaces)
       LIST_FOR_EACH_ENTRY( cur, ifaces, ifref_t, entry )
-          if(cur->iface->ref)
+          if(cur->iface->ref && cur->iface->funcs && need_proxy(cur->iface))
           {
               fprintf(proxy, "    if (!_%s_CHECK_IID(%d))\n", file_id, c);
               fprintf(proxy, "    {\n");