mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-07 23:02:23 +00:00
Add typed resource-lookup errors for non-core resource types.
Signed-off-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
e291c56182
commit
c38552d115
26 changed files with 169 additions and 137 deletions
|
|
@ -1272,7 +1272,7 @@ ProcScreenSaverSetAttributes (ClientPtr client)
|
|||
XRT_PIXMAP, client,
|
||||
DixReadAccess);
|
||||
if (status != Success)
|
||||
return (status == BadValue) ? BadPixmap : status;
|
||||
return status;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1284,7 +1284,7 @@ ProcScreenSaverSetAttributes (ClientPtr client)
|
|||
XRT_PIXMAP, client,
|
||||
DixReadAccess);
|
||||
if (status != Success)
|
||||
return (status == BadValue) ? BadPixmap : status;
|
||||
return status;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1296,7 +1296,7 @@ ProcScreenSaverSetAttributes (ClientPtr client)
|
|||
XRT_COLORMAP, client,
|
||||
DixReadAccess);
|
||||
if (status != Success)
|
||||
return (status == BadValue) ? BadColor : status;
|
||||
return status;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue