summaryrefslogtreecommitdiff
path: root/hw/xwin
diff options
context:
space:
mode:
authorRyan Pavlik <rpavlik@iastate.edu>2011-10-28 09:56:11 -0500
committerJon TURNEY <jon.turney@dronecode.org.uk>2012-01-07 22:50:11 +0000
commitc824004b4592b3d86b3514be7cab37b36642b13a (patch)
tree1247f85eebc19d84074255225a4e641c46417ba4 /hw/xwin
parent3c501691a0a9fa17da4e2cc84f55010ef2a4790d (diff)
hw/xwin: Fix possible null ptr deref in winMWExtWMRestackFrame()
Signed-off-by: Ryan Pavlik <rpavlik@iastate.edu> Reviewed-by: Colin Harrison <colin.harrison@virgin.net> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Diffstat (limited to 'hw/xwin')
-rw-r--r--hw/xwin/winwin32rootless.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xwin/winwin32rootless.c b/hw/xwin/winwin32rootless.c
index d9e71c04d..91399c248 100644
--- a/hw/xwin/winwin32rootless.c
+++ b/hw/xwin/winwin32rootless.c
@@ -551,7 +551,7 @@ winMWExtWMRestackFrame (RootlessFrameID wid, RootlessFrameID nextWid)
winDebug ("winMWExtWMRestackFrame (%08x)\n", (int) pRLWinPriv);
#endif
- if (pScreenPriv->fRestacking) return;
+ if (pScreenPriv && pScreenPriv->fRestacking) return;
if (pScreenPriv) pScreenInfo = pScreenPriv->pScreenInfo;