widl: Fix the embedded pointer offsets in generated code when the containing structure has padding.

Rob Shearman robertshearman at gmail.com
Mon Jun 23 06:58:03 CDT 2008


Do so by calculating the alignment of members when iterating through
the structures and adding it onto the buffer and memory offsets.

Only call type_memsize once elsewhere in the embedded pointer
processing functions since the return value will be the same from the
second call.
---
 tools/widl/typegen.c |  127 ++++++++++++++++++++++++++++++++++---------------
 1 files changed, 88 insertions(+), 39 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: a13e1aaced45d640e3de1725f0070fde7a119fac.diff
Type: text/x-patch
Size: 9934 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080623/cf7c1fa9/attachment.bin 


More information about the wine-patches mailing list