mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-05 10:10:46 +02:00
hw/xwin: Fix a potential crash in winRedrawScreenShadowDDNL()
Seen during shutdown when using '-fullscreen' and '-depth 8' Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
parent
16d9da0886
commit
1c34e774ef
1 changed files with 4 additions and 0 deletions
|
|
@ -986,6 +986,10 @@ winRedrawScreenShadowDDNL(ScreenPtr pScreen)
|
|||
RECT rcSrc, rcDest;
|
||||
POINT ptOrigin;
|
||||
|
||||
/* Return immediately if we didn't get needed surfaces */
|
||||
if (!pScreenPriv->pddsPrimary4 || !pScreenPriv->pddsShadow4)
|
||||
return;
|
||||
|
||||
/* Get the origin of the window in the screen coords */
|
||||
ptOrigin.x = pScreenInfo->dwXOffset;
|
||||
ptOrigin.y = pScreenInfo->dwYOffset;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue