diff options
author | marha <marha@users.sourceforge.net> | 2010-02-23 10:39:20 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-02-23 10:39:20 +0000 |
commit | 23fda7c555e6c749b1d9727be5e5571a0559b9b3 (patch) | |
tree | 366a42fa9f2e92401cbd413947e279c9429f164e /xorg-server/glx/glxcmds.c | |
parent | 64eebb5eeb9556dab6f16757f7e836e4846b15d6 (diff) | |
download | vcxsrv-23fda7c555e6c749b1d9727be5e5571a0559b9b3.tar.gz vcxsrv-23fda7c555e6c749b1d9727be5e5571a0559b9b3.tar.bz2 vcxsrv-23fda7c555e6c749b1d9727be5e5571a0559b9b3.zip |
Solved possible crash of accessing a null pointer (happens with whitedune when opening a file again)
Diffstat (limited to 'xorg-server/glx/glxcmds.c')
-rw-r--r-- | xorg-server/glx/glxcmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/glx/glxcmds.c b/xorg-server/glx/glxcmds.c index 6c469b8f8..fe1e38cb0 100644 --- a/xorg-server/glx/glxcmds.c +++ b/xorg-server/glx/glxcmds.c @@ -503,7 +503,7 @@ __glXGetDrawable(__GLXcontext *glxc, GLXDrawable drawId, ClientPtr client, return NULL;
}
- if (pDraw->pScreen != glxc->pGlxScreen->pScreen) {
+ if (!glxc || pDraw->pScreen != glxc->pGlxScreen->pScreen) {
client->errorValue = pDraw->pScreen->myNum;
*error = BadMatch;
return NULL;
|