[PATCH 1/4] CreateGC: Pass current client on to ChangeGC.

Jamey Sharp jamey at minilop.net
Sat May 8 22:56:26 PDT 2010


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 at minilop.net>
Cc: Eamon Walsh <ewalsh at tycho.nsa.gov>
---
 dix/gc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dix/gc.c b/dix/gc.c
index 86b1b67..bf21a70 100644
--- a/dix/gc.c
+++ b/dix/gc.c
@@ -538,7 +538,7 @@ CreateGC(DrawablePtr pDrawable, BITS32 mask, XID *pval, int *pStatus,
     if (!(*pGC->pScreen->CreateGC)(pGC))
 	*pStatus = BadAlloc;
     else if (mask)
-        *pStatus = ChangeGCXIDs(NullClient, pGC, mask, pval);
+        *pStatus = ChangeGCXIDs(client, pGC, mask, pval);
     else
 	*pStatus = Success;
 
-- 
1.7.0



More information about the xorg-devel mailing list