aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/xfixes/region.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/programs/Xserver/xfixes/region.c')
-rw-r--r--nx-X11/programs/Xserver/xfixes/region.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/xfixes/region.c b/nx-X11/programs/Xserver/xfixes/region.c
index 4abe9083d..9ac1fae3f 100644
--- a/nx-X11/programs/Xserver/xfixes/region.c
+++ b/nx-X11/programs/Xserver/xfixes/region.c
@@ -217,12 +217,21 @@ ProcXFixesCreateRegionFromGC (ClientPtr client)
{
RegionPtr pRegion, pClip;
GCPtr pGC;
+#ifndef NXAGENT_SERVER
+ int rc;
+#endif
REQUEST (xXFixesCreateRegionFromGCReq);
REQUEST_SIZE_MATCH (xXFixesCreateRegionFromGCReq);
LEGAL_NEW_RESOURCE (stuff->region, client);
+#ifndef NXAGENT_SERVER
+ rc = dixLookupGC(&pGC, stuff->gc, client, DixReadAccess);
+ if (rc != Success)
+ return rc;
+#else
SECURITY_VERIFY_GC(pGC, stuff->gc, client, DixReadAccess);
+#endif
switch (pGC->clientClipType) {
case CT_PIXMAP:
@@ -615,10 +624,20 @@ ProcXFixesSetGCClipRegion (ClientPtr client)
GCPtr pGC;
RegionPtr pRegion;
XID vals[2];
+#ifndef NXAGENT_SERVER
+ int rc;
+#endif
REQUEST(xXFixesSetGCClipRegionReq);
REQUEST_SIZE_MATCH(xXFixesSetGCClipRegionReq);
+
+#ifndef NXAGENT_SERVER
+ rc = dixLookupGC(&pGC, stuff->gc, client, DixWriteAccess);
+ if (rc != Success)
+ return rc;
+#else
SECURITY_VERIFY_GC(pGC, stuff->gc, client, DixWriteAccess);
+#endif
VERIFY_REGION_OR_NONE (pRegion, stuff->region, client, DixReadAccess);
if (pRegion)