https://bugs.winehq.org/show_bug.cgi?id=40537
--- Comment #16 from François Gouget fgouget@codeweavers.com --- I'll add that removing either DDSCAPS_COMPLEX or DDSCAPS_FLIP from surface_desc.ddsCaps.dwCaps for the IDirectDraw_EnumSurfaces() call avoids the crash. It's only when they are together that the crash happens. (reader from the future: see the modified test attachment)