http://bugs.winehq.org/show_bug.cgi?id=5671
------- Additional Comments From xerox_xerox2000@yahoo.co.uk 2007-09-08 19:06 ------- Hi, i think the initial bug has been fixed. With current git I get the crash with a division by zero, from comment #4. There was a call to gdi32.SetTextColor, just before the crash. It looks like this app (just as quite some others) is not happy with the screendepth wine reports. When we report back screendepth 32 ***, the app starts fine , and seems fully functional
***: stupid hack:
diff --git a/dlls/gdi32/dc.c b/dlls/gdi32/dc.c index 30acc03..e595dbe 100644 --- a/dlls/gdi32/dc.c +++ b/dlls/gdi32/dc.c @@ -903,7 +903,7 @@ INT WINAPI GetDeviceCaps( HDC hdc, INT cap ) case SIZEPALETTE: ret = 2; break; } GDI_ReleaseObj( hdc ); - } + }if(cap == BITSPIXEL && ret == 24) ret =32; return ret; }