ddraw: Don't interpret end padding as dwCaps2 for x64.

Dylan Smith dylan.ah.smith at gmail.com
Sun May 22 14:50:19 CDT 2011


On Sun, May 22, 2011 at 3:10 AM, Stefan Dösinger <stefandoesinger at gmx.at> wrote:
> On Sunday 22 May 2011 06:57:30 Dylan Smith wrote:
>> 4 bytes of padding are at the end of DDSURFACEDESC when compiling for
>> x64, because it contains a pointer field followed by an odd number
>> of DWORD fields.
> Does DDSURFACEDESC have the same padding when using the microsoft headers and
> msvc?
>
I tried and got the same results for x64:
offsetof(DDSURFACEDESC, ddsCaps) = 112
offsetof(DDSURFACEDESC, ddsCaps) + sizeof(DDSCAPS) = 116
sizeof(DDSURFACEDESC) = 120



More information about the wine-devel mailing list