[1/7] widl: check for interface pointers in pointer handling

Dan Hipschman dsh at linux.ucla.edu
Mon Jun 25 20:22:57 CDT 2007


With this series of patches, widl can finally compile oaidl.idl all the way
through.  I haven't actually tried to use the generated proxy in place of the
one in dlls/oleaut32, because I know it won't work yet.  :-)  However, now
that we can generate a proxy file, we know exactly what needs fixing and how
much of it there is.  BTW, I haven't tried to apply this patch along with the
one Eric sent in today, but I looked at his and I don't think there will be
any conflicts.

This patch discriminates between regular pointers and pointers to interfaces,
which are special.

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

diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index 8c76e6e..bb998fc 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -1051,7 +1051,7 @@ static int write_pointer_description_offsets(
     int written = 0;
     unsigned int align;
 
-    if (is_ptr(type))
+    if (is_ptr(type) && type->ref->type != RPC_FC_IP)
     {
         if (offset_in_memory && offset_in_buffer)
         {



More information about the wine-patches mailing list