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

Dmitry Timoshkov dmitry at baikal.ru
Thu Dec 20 09:05:48 CST 2012


Huw Davies <huw at codeweavers.com> wrote:

> > >  typedef struct {
> > > +    WORD PosFormat;
> > > +    WORD Coverage;
> > > +    WORD ValueFormat1;
> > > +    WORD ValueFormat2;
> > > +    WORD ClassDef1;
> > > +    WORD ClassDef2;
> > > +    WORD Class1Count;
> > > +    WORD Class2Count;
> > > +    WORD Class1Record[1];
> > > +} GPOS_PairPosFormat2;
> > 
> > Shouldn't this structure be 2 bytes aligned?
> 
> I don't see why.  They're all WORDs.

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.

-- 
Dmitry.



More information about the wine-devel mailing list