diff options
author | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2005-06-08 09:01:41 +0000 |
---|---|---|
committer | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2005-06-08 09:01:41 +0000 |
commit | d0d164e6daf6c1d8afe8099fb6187d8a74ff652b (patch) | |
tree | c94f7d90003604c1d7f195b38cd179fd8b7fe17f /hw/xwin | |
parent | d146c41882e50dd1ed6022f8a5866514067ba9d2 (diff) |
Fix crash reported by Øyvind Harboe
Diffstat (limited to 'hw/xwin')
-rw-r--r-- | hw/xwin/ChangeLog | 5 | ||||
-rw-r--r-- | hw/xwin/winmultiwindowwindow.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/hw/xwin/ChangeLog b/hw/xwin/ChangeLog index 21f653a6c..06e503e2e 100644 --- a/hw/xwin/ChangeLog +++ b/hw/xwin/ChangeLog @@ -1,3 +1,8 @@ +2005-06-08 Alexander Gottwald <ago at freedesktop dot org> + + * winmultiwindowwindow.c: + Fix crash reported by Øyvind Harboe + 2005-06-03 Alexander Gottwald <ago at freedesktop dot org> * winmultiwindowwndproc.c: 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); |