aboutsummaryrefslogtreecommitdiff
path: root/xorg-server
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-07-05 07:08:23 +0000
committermarha <marha@users.sourceforge.net>2010-07-05 07:08:23 +0000
commit5f305383ae7dd3ca47bdbfaa1f093a611b1ef059 (patch)
tree22c56b9df68707c57783feef3aae6196f53a39dd /xorg-server
parentbb10a5eb99178daa575d5365c8588d891e9988be (diff)
downloadvcxsrv-5f305383ae7dd3ca47bdbfaa1f093a611b1ef059.tar.gz
vcxsrv-5f305383ae7dd3ca47bdbfaa1f093a611b1ef059.tar.bz2
vcxsrv-5f305383ae7dd3ca47bdbfaa1f093a611b1ef059.zip
Solved possible crash
Diffstat (limited to 'xorg-server')
-rw-r--r--xorg-server/hw/xwin/winshadddnl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xorg-server/hw/xwin/winshadddnl.c b/xorg-server/hw/xwin/winshadddnl.c
index 95fb0e6fc..496dd4605 100644
--- a/xorg-server/hw/xwin/winshadddnl.c
+++ b/xorg-server/hw/xwin/winshadddnl.c
@@ -625,12 +625,15 @@ winShadowUpdateDDNL (ScreenPtr pScreen,
rcDest.bottom = ptOrigin.y + rcSrc.bottom;
/* Blit the damaged areas */
- ddrval = IDirectDrawSurface4_Blt (pScreenPriv->pddsPrimary4,
+ if (pScreenPriv->pddsPrimary4)
+ ddrval = IDirectDrawSurface4_Blt (pScreenPriv->pddsPrimary4,
&rcDest,
pScreenPriv->pddsShadow4,
&rcSrc,
DDBLT_WAIT,
NULL);
+ else
+ ddrval=-1;
if (FAILED (ddrval))
{
static int s_iFailCount = 0;