Another pack4 issue (fwd)

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


"Ulrich Weigand" <weigand at immd1.informatik.uni-erlangen.de> 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.

--
Dmitry.





More information about the wine-devel mailing list