mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-25 10:40:25 +00:00
xres: fix XResQueryClientIds always returning 0 clients
XaceHookClientAccess added in 098008879b
has incorrect condition in ConstructClientIds.
This fixes #182
Signed-off-by: dec05eba <dec05eba@protonmail.com>
This commit is contained in:
@@ -516,7 +516,7 @@ ConstructClientIds(ClientPtr client,
|
||||
for (c = 0; c < currentMaxClients; ++c) {
|
||||
if (clients[c] &&
|
||||
(XaceHookClientAccess(client, clients[c], DixReadAccess)
|
||||
!= Success)) {
|
||||
== Success)) {
|
||||
if (!ConstructClientIdValue(client, clients[c],
|
||||
specs[specIdx].mask, ctx)) {
|
||||
return BadAlloc;
|
||||
@@ -527,7 +527,7 @@ ConstructClientIds(ClientPtr client,
|
||||
ClientPtr owner = dixClientForXID(specs[specIdx].client);
|
||||
if (owner &&
|
||||
(XaceHookClientAccess(client, owner, DixReadAccess)
|
||||
!= Success)) {
|
||||
== Success)) {
|
||||
if (!ConstructClientIdValue(client, owner,
|
||||
specs[specIdx].mask, ctx)) {
|
||||
return BadAlloc;
|
||||
|
||||
Reference in New Issue
Block a user