summaryrefslogtreecommitdiff
path: root/randr/rrscreen.c
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2006-12-14 17:53:43 -0500
committerEamon Walsh <ewalsh@moss-huskies.epoch.ncsc.mil>2006-12-14 17:53:43 -0500
commit51b69ff499c05f59cb1e577c4e8abf6f7f283b3e (patch)
tree0625ff299fbae31aebef61342fef80278a222dfb /randr/rrscreen.c
parent0cf75e74322e2b6a6efc7acf892e04365fde503b (diff)
Remove instances of macro SECURITY_VERIFY_DRAWABLE.
Diffstat (limited to 'randr/rrscreen.c')
-rw-r--r--randr/rrscreen.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/randr/rrscreen.c b/randr/rrscreen.c
index b4004a31f..3b9263bc4 100644
--- a/randr/rrscreen.c
+++ b/randr/rrscreen.c
@@ -703,7 +703,7 @@ ProcRRSetScreenConfig (ClientPtr client)
REQUEST(xRRSetScreenConfigReq);
xRRSetScreenConfigReply rep;
DrawablePtr pDraw;
- int n;
+ int n, rc;
ScreenPtr pScreen;
rrScrPrivPtr pScrPriv;
TimeStamp configTime;
@@ -730,8 +730,9 @@ ProcRRSetScreenConfig (ClientPtr client)
has_rate = FALSE;
}
- SECURITY_VERIFY_DRAWABLE(pDraw, stuff->drawable, client,
- DixWriteAccess);
+ rc = dixLookupDrawable(&pDraw, stuff->drawable, client, 0, DixWriteAccess);
+ if (rc != Success)
+ return rc;
pScreen = pDraw->pScreen;