http://bugs.winehq.org/show_bug.cgi?id=11203
--- Comment #29 from Ian Goddard igoddard@nildram.co.uk 2009-08-14 16:11:20 --- (In reply to comment #27)
Is the problem with those apps that the apps don't like 32 bpp, or that the X server has a 24 bit framebuffer?
The problem is with X servers which have 24 bit buffers encountering apps that try to use 32.
The problem code assumes that if a 24 bit buffer is reported it can really handle 32 anyway and sets the depth to 32. When the app sends a 32 bit bitmap a fault is thrown as per my original trace. If the code is changed to set the depth to 24 as reported (see my minimal patch) then an error is reported to the console (see comment #25) but the app runs (at least EA does and so does an app reported in a duplicate bug).
I now run the patched version with no problems but it may well be that there is some server out there which will meet the original assumption in the code and lose some functionality if the patch is applied. See the comment in the code which I quoted in comment #25.
The patch does cure a number of errors which used to come up regularly in winetest (igoddard-laptop was my ID). Unfortunately it's some time since I ran winetest as, some months ago, it started hanging my laptop so that I couldn't get through to the point were results were reported.