summaryrefslogtreecommitdiff
path: root/hw/xwin/winmultiwindowwindow.c
diff options
context:
space:
mode:
authorAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2005-06-08 09:01:41 +0000
committerAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2005-06-08 09:01:41 +0000
commitd0d164e6daf6c1d8afe8099fb6187d8a74ff652b (patch)
treec94f7d90003604c1d7f195b38cd179fd8b7fe17f /hw/xwin/winmultiwindowwindow.c
parentd146c41882e50dd1ed6022f8a5866514067ba9d2 (diff)
Fix crash reported by Øyvind Harboe
Diffstat (limited to 'hw/xwin/winmultiwindowwindow.c')
-rw-r--r--hw/xwin/winmultiwindowwindow.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/xwin/winmultiwindowwindow.c b/hw/xwin/winmultiwindowwindow.c
index e9757a31d..b6df0f863 100644
--- a/hw/xwin/winmultiwindowwindow.c
+++ b/hw/xwin/winmultiwindowwindow.c
@@ -855,6 +855,11 @@ winMinimizeWindow (Window id)
#endif
pWin = LookupIDByType (id, RT_WINDOW);
+ if (!pWin)
+ {
+ ErrorF("%s: NULL pWin. Leaving\n", __FUNCTION__);
+ return;
+ }
pScreen = pWin->drawable.pScreen;
if (pScreen) pScreenPriv = winGetScreenPriv(pScreen);