widl [3/3]: Output the correct value for TableSize in ProxyFileInfo

Dan Hipschman dsh at linux.ucla.edu
Mon Oct 15 20:07:52 CDT 2007


This patch fixes a crash in oleaut32/tmarshal.c when using widl's oaidl_p.c.
The problem was that the wrong value for TableSize was being output since
it was counting interfaces with the local attribute.

---
 tools/widl/proxy.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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 @@ void write_proxies(ifref_list_t *ifaces)
   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");



More information about the wine-patches mailing list