widl: Fix the embedded pointer offsets in generated code when the containing structur...
authorRob Shearman <robertshearman@gmail.com>
Mon, 23 Jun 2008 11:58:03 +0000 (12:58 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 23 Jun 2008 17:25:53 +0000 (19:25 +0200)
commit28a9b94afcb03d0611ed202da694de94a4546bcf
treea41d61c7bcb0db2f410f39290bc7595e7a0374a9
parent5f1de5a11dd23727ce4d3bc2fa2f229761d9363e
widl: Fix the embedded pointer offsets in generated code when the containing structure has padding.

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