diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2006-12-14 17:53:43 -0500 |
---|---|---|
committer | Eamon Walsh <ewalsh@moss-huskies.epoch.ncsc.mil> | 2006-12-14 17:53:43 -0500 |
commit | 51b69ff499c05f59cb1e577c4e8abf6f7f283b3e (patch) | |
tree | 0625ff299fbae31aebef61342fef80278a222dfb /damageext | |
parent | 0cf75e74322e2b6a6efc7acf892e04365fde503b (diff) |
Remove instances of macro SECURITY_VERIFY_DRAWABLE.
Diffstat (limited to 'damageext')
-rwxr-xr-x | damageext/damageext.c | 8 |
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; |