[PATCH 1/4] CreateGC: Pass current client on to ChangeGC.
Eamon Walsh
ewalsh at tycho.nsa.gov
Wed May 12 16:01:20 PDT 2010
Reviewed-by: Eamon Walsh <ewalsh at tycho.nsa.gov>
On 05/09/2010 01:56 AM, Jamey Sharp wrote:
> 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;
>
>
--
Eamon Walsh
National Security Agency
More information about the xorg-devel
mailing list