Another pack4 issue (fwd)

Dmitry Timoshkov dmitry at
Thu Nov 22 20:58:10 CST 2001

"Ulrich Weigand" <weigand at> wrote:

> > Without pshpack4.h sizeof(LUID_AND_ATTRIBUTES)=16 instead of 12. Don't ask
> > me why. 
> Because the size of a structure is always padded to the next multiple of 
> its alignment (so that in an array of structures, every element is properly
> aligned iff the array is).  By changing the alignment, you therefore also
> sometimes change the size of a structure ...

Ulrich, thanks for explanations. I believe that's the case for the FILETIME
vs. LARGE_INTEGER issue too.


More information about the wine-devel mailing list