diff options
author | Jamey Sharp <jamey@minilop.net> | 2010-04-24 23:56:36 -0700 |
---|---|---|
committer | Jamey Sharp <jamey@minilop.net> | 2010-05-19 12:32:48 -0700 |
commit | c38552d115e3bc71ad6179a8ad0d68778e943793 (patch) | |
tree | af6a02d6e34896c2a91b49ba568dab6bbad8b7d8 /Xext/saver.c | |
parent | e291c561821ae86b7dd74269d5cd29bc31703962 (diff) |
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>
Diffstat (limited to 'Xext/saver.c')
-rw-r--r-- | Xext/saver.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Xext/saver.c b/Xext/saver.c index 63a41d6d7..fdcbac567 100644 --- a/Xext/saver.c +++ b/Xext/saver.c @@ -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; } } |