http://bugs.winehq.org/show_bug.cgi?id=16792
--- Comment #1 from Dan Kegel dank@kegel.com 2009-01-04 11:42:40 --- And if I add dc->funcs && to line 238 of gdi32/pen.c, it eventually crashes with
=>0 X11DRV_SelectPen+0x3c(physDev=(nil), hpen=0x64) [dlls/winex11.drv/pen.c:66] in winex11 (0x0032f9b4) 1 PEN_SelectObject+0x48(handle=0x64, hdc=0x163c) [dlls/gdi32/pen.c:238] in gdi32 2 SelectObject+0xac(hdc=0x163c, hObj=?) [dlls/gdi32/gdiobj.c:1129] in gdi32
so I added dc->funcs && dc->physDev &&. Seems to avoid the crash. I'll attach the patch. No idea if it's right, or why those would be null.