mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
xace: change prototype of VALIDATE_DRAWABLE_AND_GC macro to allow access
mode to be passed to dixLookupDrawable.
This commit is contained in:
@@ -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);\
|
||||
|
||||
Reference in New Issue
Block a user