I just got this report. I have not looked to see if we patched this
already.

----- Forwarded message from Nye Liu <[email protected]> -----

From: Nye Liu <[email protected]>
Subject: patch to prevent wmaker from crashing when using wine apps
To: [email protected]
Date: Wed, 17 Dec 2008 19:45:43 -0800
Message-ID: <[email protected]>

wine causes segfaults in wmaker.

the problem seems to be a null pointer deref

--- wmaker/src/wmspec.c.orig    2008-12-17 19:40:31.000000000 -0800
+++ wmaker/src/wmspec.c 2008-12-17 19:39:54.000000000 -0800
@@ -1268,10 +1268,12 @@
         XFree(data);
     }
 
-    ChangeStackingLevel(wwin->frame->core, layer);
-    wwin->frame->flags.need_texture_change = 1;
-    wWindowConfigureBorders(wwin);
-    wFrameWindowPaint(wwin->frame);
+    if (wwin->frame) {
+       ChangeStackingLevel(wwin->frame->core, layer);
+       wwin->frame->flags.need_texture_change = 1;
+       wWindowConfigureBorders(wwin);
+       wFrameWindowPaint(wwin->frame);
+    }
     wNETWMUpdateActions(wwin, False);
 }
 

-- 
Nye Liu
[email protected]
(818) 772-6235x248
(818) 772-0576 fax

"Who would be stupid enough to quote a fictitious character?"
        -- Don Quixote

----- End forwarded message -----


-- 
To unsubscribe, send mail to [email protected].

Reply via email to