summaryrefslogtreecommitdiff
path: root/Xext/mbuf.c
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2006-12-15 16:36:29 -0500
committerEamon Walsh <ewalsh@moss-huskies.epoch.ncsc.mil>2006-12-15 16:36:29 -0500
commit10aabb729d1586db344f9c1abdf1cf45e7ddaa7a (patch)
tree4c601a4b49253dec98d4d6d4364c9f61fb30dcc0 /Xext/mbuf.c
parent25d5e0a629f82d95bd71daf9a920a70e095b5188 (diff)
Convert callers of LookupDrawable() to dixLookupDrawable().
Diffstat (limited to 'Xext/mbuf.c')
-rw-r--r--Xext/mbuf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Xext/mbuf.c b/Xext/mbuf.c
index 43e2cc107..ed352e21b 100644
--- a/Xext/mbuf.c
+++ b/Xext/mbuf.c
@@ -786,15 +786,15 @@ ProcGetBufferInfo (client)
DrawablePtr pDrawable;
xMbufGetBufferInfoReply rep;
ScreenPtr pScreen;
- int i, j, k;
- int n;
+ int i, j, k, n, rc;
xMbufBufferInfo *pInfo;
int nInfo;
DepthPtr pDepth;
- pDrawable = (DrawablePtr) LookupDrawable (stuff->drawable, client);
- if (!pDrawable)
- return BadDrawable;
+ rc = dixLookupDrawable(&pDrawable, stuff->drawable, client, 0,
+ DixUnknownAccess);
+ if (rc != Success)
+ return rc;
pScreen = pDrawable->pScreen;
nInfo = 0;
for (i = 0; i < pScreen->numDepths; i++)