summaryrefslogtreecommitdiff
path: root/Xi/xichangecursor.c
diff options
context:
space:
mode:
Diffstat (limited to 'Xi/xichangecursor.c')
-rw-r--r--Xi/xichangecursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xi/xichangecursor.c b/Xi/xichangecursor.c
index f071e8406..e72cfac03 100644
--- a/Xi/xichangecursor.c
+++ b/Xi/xichangecursor.c
@@ -103,7 +103,7 @@ int ProcXIChangeCursor(ClientPtr client)
rc = dixLookupResourceByType((pointer *)&pCursor, stuff->cursor,
RT_CURSOR, client, DixUseAccess);
if (rc != Success)
- return (rc == BadValue) ? BadCursor : rc;
+ return rc;
}
ChangeWindowDeviceCursor(pWin, pDev, pCursor);