CreateGC: Pass current client on to ChangeGC.
Otherwise we can't check that the XIDs this GC is being initialized with are accessible to this client. Signed-off-by: Jamey Sharp <jamey@minilop.net> Cc: Eamon Walsh <ewalsh@tycho.nsa.gov> Reviewed-by: Eamon Walsh <ewalsh@tycho.nsa.gov>
This commit is contained in:
parent
04bad1b8a1
commit
3150417623
2
dix/gc.c
2
dix/gc.c
|
@ -574,7 +574,7 @@ CreateGC(DrawablePtr pDrawable, BITS32 mask, XID *pval, int *pStatus,
|
|||
if (!(*pGC->pScreen->CreateGC)(pGC))
|
||||
*pStatus = BadAlloc;
|
||||
else if (mask)
|
||||
*pStatus = dixChangeGC(NullClient, pGC, mask, pval, NULL);
|
||||
*pStatus = dixChangeGC(client, pGC, mask, pval, NULL);
|
||||
else
|
||||
*pStatus = Success;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user