widl: Increment the buffer offset by 8 for embedded pointers inside varying arrays in varying structures. [Try 2]

Rob Shearman robertshearman at gmail.com
Tue Jul 1 18:00:43 CDT 2008

The 8 bytes are for the variance and offset and are added just before
the array, as seen in the marshalling code in rpcrt4. No offset needs
to be added for non-varying structures since the buffer mark is set
after the conformance in marshalled or unmarshalled.
 tools/widl/typegen.c |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

This version fixes an unspotted compiler warning in the previous version.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6ace81f0c277b6f0dc054f65b1433bc6a894898c.diff
Type: text/x-patch
Size: 2297 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080702/4fb25c66/attachment.bin 

More information about the wine-patches mailing list