[PATCH 3/3] usp10: Add support for format 2 pair adjustments.

Dmitry Timoshkov dmitry at baikal.ru
Thu Dec 20 09:26:36 CST 2012

Huw Davies <huw at codeweavers.com> wrote:

> > There are 9 elements of 2 bytes in size each, 18 bytes in total,
> > the compiler will align this structure to 4 bytes, making its
> > size 20 bytes.
> The size is irrelevant - it's variable sized anyway.  We just care
> about the offsets of the elements.

Anyway, in order to avoid any confusion or bugs in future with allocating
an array of such structures or using sizeof() on them I'd suggest to
explicitely specify alignment.


More information about the wine-devel mailing list