xace: change prototype of VALIDATE_DRAWABLE_AND_GC macro to allow access

mode to be passed to dixLookupDrawable.
This commit is contained in:
Eamon Walsh
2007-09-25 09:33:51 -04:00
committed by Eamon Walsh
parent a247886b08
commit 9bd04055a2
5 changed files with 27 additions and 29 deletions

View File

@@ -81,11 +81,9 @@ SOFTWARE.
return(BadIDChoice);\
}
#define VALIDATE_DRAWABLE_AND_GC(drawID, pDraw, pGC, client)\
#define VALIDATE_DRAWABLE_AND_GC(drawID, pDraw, mode)\
{\
int rc;\
rc = dixLookupDrawable(&(pDraw), drawID, client, M_ANY,\
DixWriteAccess);\
int rc = dixLookupDrawable(&(pDraw), drawID, client, M_ANY, mode);\
if (rc != Success)\
return rc;\
rc = dixLookupGC(&(pGC), stuff->gc, client, DixUseAccess);\