From 51b69ff499c05f59cb1e577c4e8abf6f7f283b3e Mon Sep 17 00:00:00 2001 From: Eamon Walsh Date: Thu, 14 Dec 2006 17:53:43 -0500 Subject: Remove instances of macro SECURITY_VERIFY_DRAWABLE. --- damageext/damageext.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'damageext') 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; -- cgit v1.2.3