mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-06 17:50:12 +01:00
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
1 changed files with 1 additions and 1 deletions
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…
Add table
Reference in a new issue