summaryrefslogtreecommitdiff
path: root/damageext/damageext.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 /damageext/damageext.c
parent0cf75e74322e2b6a6efc7acf892e04365fde503b (diff)
Remove instances of macro SECURITY_VERIFY_DRAWABLE.
Diffstat (limited to 'damageext/damageext.c')
-rwxr-xr-xdamageext/damageext.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/damageext/damageext.c b/damageext/damageext.c
index c8f28e953..6083693a4 100755
--- a/damageext/damageext.c
+++ b/damageext/damageext.c
@@ -173,13 +173,17 @@ ProcDamageCreate (ClientPtr client)
DamageExtPtr pDamageExt;
DamageReportLevel level;
RegionPtr pRegion;
+ int rc;
REQUEST(xDamageCreateReq);
REQUEST_SIZE_MATCH(xDamageCreateReq);
LEGAL_NEW_RESOURCE(stuff->damage, client);
- SECURITY_VERIFY_DRAWABLE (pDrawable, stuff->drawable, client,
- DixReadAccess);
+ rc = dixLookupDrawable(&pDrawable, stuff->drawable, client, 0,
+ DixReadAccess);
+ if (rc != Success)
+ return rc;
+
switch (stuff->level) {
case XDamageReportRawRectangles:
level = DamageReportRawRegion;