mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 19:30:05 +01:00
xinerama: Fix access mode in GetImage's drawable lookup
Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
942e18e17e
commit
3f4edd2e3f
1 changed files with 1 additions and 1 deletions
|
|
@ -1908,7 +1908,7 @@ PanoramiXGetImage(ClientPtr client)
|
|||
}
|
||||
|
||||
rc = dixLookupResourceByClass((void **) &draw, stuff->drawable,
|
||||
XRC_DRAWABLE, client, DixWriteAccess);
|
||||
XRC_DRAWABLE, client, DixReadAccess);
|
||||
if (rc != Success)
|
||||
return (rc == BadValue) ? BadDrawable : rc;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue