summaryrefslogtreecommitdiff
path: root/dbe
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2006-12-15 16:51:58 -0500
committerEamon Walsh <ewalsh@moss-huskies.epoch.ncsc.mil>2006-12-15 16:51:58 -0500
commitf11dafaafc68f5cff1a1538d9566907786d8ab72 (patch)
tree61816cfb0f88cea4d3f5d4b15d87bb3f07979327 /dbe
parent10aabb729d1586db344f9c1abdf1cf45e7ddaa7a (diff)
Convert callers of SecurityLookupDrawable() to dixLookupDrawable().
Diffstat (limited to 'dbe')
-rw-r--r--dbe/dbe.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/dbe/dbe.c b/dbe/dbe.c
index 69ddf4f1c..38375f92a 100644
--- a/dbe/dbe.c
+++ b/dbe/dbe.c
@@ -865,7 +865,7 @@ ProcDbeGetVisualInfo(ClientPtr client)
xDbeGetVisualInfoReply rep;
Drawable *drawables;
DrawablePtr *pDrawables = NULL;
- register int i, j, n;
+ register int i, j, n, rc;
register int count; /* number of visual infos in reply */
register int length; /* length of reply */
ScreenPtr pScreen;
@@ -887,11 +887,11 @@ ProcDbeGetVisualInfo(ClientPtr client)
for (i = 0; i < stuff->n; i++)
{
- if (!(pDrawables[i] = (DrawablePtr)SecurityLookupDrawable(
- drawables[i], client, DixReadAccess)))
- {
+ rc = dixLookupDrawable(pDrawables+i, drawables[i], client, 0,
+ DixReadAccess);
+ if (rc != Success) {
DEALLOCATE_LOCAL(pDrawables);
- return(BadDrawable);
+ return rc;
}
}
}