diff options
author | marha <marha@users.sourceforge.net> | 2009-10-11 19:02:38 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2009-10-11 19:02:38 +0000 |
commit | 6b4cfac5a67f87884a525ce2c99f30e0060b3ca7 (patch) | |
tree | 0b7068a671390a9241b131225ef22107e4183259 /xorg-server/miext/rootless/rootlessCommon.c | |
parent | 5d30999c0fed9919ec9c55d87d84665f79d51ca2 (diff) | |
download | vcxsrv-6b4cfac5a67f87884a525ce2c99f30e0060b3ca7.tar.gz vcxsrv-6b4cfac5a67f87884a525ce2c99f30e0060b3ca7.tar.bz2 vcxsrv-6b4cfac5a67f87884a525ce2c99f30e0060b3ca7.zip |
Now rootless dir compiles.
Diffstat (limited to 'xorg-server/miext/rootless/rootlessCommon.c')
-rw-r--r-- | xorg-server/miext/rootless/rootlessCommon.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xorg-server/miext/rootless/rootlessCommon.c b/xorg-server/miext/rootless/rootlessCommon.c index e3dd9d97c..b96422b76 100644 --- a/xorg-server/miext/rootless/rootlessCommon.c +++ b/xorg-server/miext/rootless/rootlessCommon.c @@ -146,7 +146,8 @@ void RootlessStartDrawing(WindowPtr pWindow) ScreenPtr pScreen = pWindow->drawable.pScreen; WindowPtr top = TopLevelParent(pWindow); RootlessWindowRec *winRec; - + PixmapPtr curPixmap; + if (top == NULL) return; winRec = WINREC(top); @@ -172,7 +173,7 @@ void RootlessStartDrawing(WindowPtr pWindow) winRec->is_drawing = TRUE; } - PixmapPtr curPixmap = pScreen->GetWindowPixmap(pWindow); + curPixmap = pScreen->GetWindowPixmap(pWindow); if (curPixmap == winRec->pixmap) { RL_DEBUG_MSG("Window %p already has winRec->pixmap %p; not pushing\n", pWindow, winRec->pixmap); |