https://bugs.winehq.org/show_bug.cgi?id=40537
--- Comment #13 from François Gouget fgouget@codeweavers.com --- Created attachment 56743 --> https://bugs.winehq.org/attachment.cgi?id=56743 Minimal ddraw1.c file to reproduce the crash
The ddraw1 crash happens in restore_surfaces() call, even if restore_callback() does nothing at all.
However further investigation shows that neither the removed set_display_mode() call, nor the lines added by 7cabef14 matter: I came up with a minimal test that reliably produces the same crash.
What the driver does not like is the DDSCAPS_COMPLEX | DDSCAPS_FLIP | DDSCAPS_TEXTURE CreateSurface() combination.