10 Apr
2025
10 Apr
'25
4:40 a.m.
On Wed Apr 9 18:43:48 2025 +0000, Santino Mazza wrote:
Mmm, looks like it's failing to compile in the pipeline because of this line. I suppose it's because dwBitMasks only has 3 elements and in offsetof I'm trying to get the offset to a fourth element. In my computer it compiles fine, also I got this code from the quartz implementation so this is already being done. It's complaining that you don't allocate the whole `VIDEOINFO` struct. This fixes the warning for me:
mt->cbFormat = offsetof(VIDEOINFO, dwBitMasks[3]);
mt->pbFormat = CoTaskMemRealloc(mt->pbFormat, sizeof(VIDEOINFO));
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/7715#note_100533