Re: ddraw: Don't interpret end padding as dwCaps2 for x64.
23 May
2011
23 May
'11
4:33 a.m.
Dylan Smith <dylan.ah.smith(a)gmail.com> writes:
@@ -3123,6 +3123,8 @@ static HRESULT CreateSurface(IDirectDrawImpl *ddraw, DDSURFACEDESC2 *DDSD, memset(&desc2, 0, sizeof(desc2)); desc2.dwSize = sizeof(desc2); /* For the struct copy */ DD_STRUCT_COPY_BYSIZE(&desc2, DDSD); + if (DDSD->dwSize == sizeof(DDSURFACEDESC)) + CLEAR_STRUCT_END_PADDING((DDSURFACEDESC*)&desc2, ddsCaps);
I'd suggest to rethink the whole thing. We don't really need to set the same structure fields 4 times. -- Alexandre Julliard julliard(a)winehq.org
5407
Age (days ago)
5407
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard