[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#617653: Acknowledgement (xserver-xorg-core: Xorg crashes on second launch of any wine application using OpenGL)



tag 617653 patch
thanks

Attached patch seems to fix the problem. I didn't study the code in
enough detail to know if it may create more problem or if it's a correct
solution. But at very least it prevents a very annoying crash so I
recommend applying it, at least until proper solution is found

-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko

diff -ur xorg-server-1.9.4.901/hw/xfree86/dri2/dri2.c xorg-server-1.9.4.901-mod//hw/xfree86/dri2/dri2.c
--- xorg-server-1.9.4.901/hw/xfree86/dri2/dri2.c	2011-02-27 09:17:53.000000000 +0100
+++ xorg-server-1.9.4.901-mod//hw/xfree86/dri2/dri2.c	2011-03-10 12:12:06.773396003 +0100
@@ -763,6 +763,9 @@
 {
     DRI2DrawablePtr pPriv = DRI2GetDrawable(pDrawable);
 
+    if (!pPriv)
+      return FALSE;
+
     /* If we're currently waiting for a swap on this drawable, reset
      * the request and suspend the client.  We only support one
      * blocked client per drawable. */

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: