aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/mi/miwindow.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-07-15 10:59:16 +0200
committermarha <marha@users.sourceforge.net>2011-07-15 10:59:16 +0200
commit4b424e0ba999b47ca62298e8104f76f940aac4d8 (patch)
treeeb1d6080a9676c73118f5fe79adfdf62cae81c12 /xorg-server/mi/miwindow.c
parentcfe47427e85b626bfb92c6ecb6eb43a2eb80a552 (diff)
downloadvcxsrv-4b424e0ba999b47ca62298e8104f76f940aac4d8.tar.gz
vcxsrv-4b424e0ba999b47ca62298e8104f76f940aac4d8.tar.bz2
vcxsrv-4b424e0ba999b47ca62298e8104f76f940aac4d8.zip
Solved possible crash because of invalid valdata pointers
Diffstat (limited to 'xorg-server/mi/miwindow.c')
-rw-r--r--xorg-server/mi/miwindow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/mi/miwindow.c b/xorg-server/mi/miwindow.c
index 55a86dd13..87d474ff2 100644
--- a/xorg-server/mi/miwindow.c
+++ b/xorg-server/mi/miwindow.c
@@ -228,7 +228,7 @@ miHandleValidateExposures(WindowPtr pWin)
WindowExposures = pChild->drawable.pScreen->WindowExposures;
while (1)
{
- if ( (val = pChild->valdata) )
+ if ( (val = pChild->valdata) && val!=UnmapValData)
{
if (RegionNotEmpty(&val->after.borderExposed))
miPaintWindow(pChild, &val->after.borderExposed, PW_BORDER);