diff options
author | marha <marha@users.sourceforge.net> | 2010-07-05 07:08:23 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-07-05 07:08:23 +0000 |
commit | 5f305383ae7dd3ca47bdbfaa1f093a611b1ef059 (patch) | |
tree | 22c56b9df68707c57783feef3aae6196f53a39dd /xorg-server/hw/xwin | |
parent | bb10a5eb99178daa575d5365c8588d891e9988be (diff) | |
download | vcxsrv-5f305383ae7dd3ca47bdbfaa1f093a611b1ef059.tar.gz vcxsrv-5f305383ae7dd3ca47bdbfaa1f093a611b1ef059.tar.bz2 vcxsrv-5f305383ae7dd3ca47bdbfaa1f093a611b1ef059.zip |
Solved possible crash
Diffstat (limited to 'xorg-server/hw/xwin')
-rw-r--r-- | xorg-server/hw/xwin/winshadddnl.c | 5 |
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;
|