From f11dafaafc68f5cff1a1538d9566907786d8ab72 Mon Sep 17 00:00:00 2001 From: Eamon Walsh Date: Fri, 15 Dec 2006 16:51:58 -0500 Subject: Convert callers of SecurityLookupDrawable() to dixLookupDrawable(). --- dbe/dbe.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'dbe/dbe.c') 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; } } } -- cgit v1.2.3