http://bugs.winehq.org/show_bug.cgi?id=1660
--- Comment #28 from Markus mst@collogia.de 2009-09-29 04:57:08 --- Phew, this kept me busy quite a few days. The error comes from Wine leaving dwBackBufferCount>0 in backbuffer surfaces. This leads to the following endless loop in Worms when trying to initialize palettes for attached surfaces:
function SomewhereInWorms(ThisSurface) { ... CreatePalette ... do something with ThisSurface /* DUMP occurs here */ ... GetSurfaceDesc(Surface) if (dwBackBufferCount==1) { NextSurface=GetAttached(ThisSurface) /* program does not check Result */ call function SomwhereInWorms(NextSurface) } }