widl: Fix detection of non-pointer context handles.

Robert Shearman rob at codeweavers.com
Wed Mar 26 08:47:51 CDT 2008


is_ptr cannot be used because it follows the chain of types into the 
type which has the context_handle attribute, which is typically "void *" 
and so causes these context handles to be incorrectly detected as 
context handles. Instead, we can use is_aliaschain_ptr to follow the 
chain of aliases without following pointers and the absence of the 
context_handle attribute indicates that it must be present on a type 
after following a pointer.
---
  tools/widl/client.c  |    8 ++++++--
  tools/widl/server.c  |    6 +++++-
  tools/widl/typegen.c |    6 +++++-
  3 files changed, 16 insertions(+), 4 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: f2765d9682a7b68e1334e885527cfdc0da0e5496.diff
Type: text/x-patch
Size: 3320 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080326/20783c7f/attachment.bin 


More information about the wine-patches mailing list