[Bug 16792] BaseHead 1.7 crashes while moving window around

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Jan 4 11:42:41 CST 2009


http://bugs.winehq.org/show_bug.cgi?id=16792





--- Comment #1 from Dan Kegel <dank at 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.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list