diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-08-13 10:50:26 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-08-13 11:19:37 +1000 |
commit | 36e24a6d93bd5aced4e566b80bf2d03555fab9ca (patch) | |
tree | 94d2485b9cf3cdf4d800096323f3b132674d2122 | |
parent | ce69a06aff934b2dcded8606cab079ac6465007c (diff) |
Xext: add missing return code check to ProcSyncDestroyAlarm
Introduced with 57aff88c7d0761e590806d07bee1c9410680c89f.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | Xext/sync.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Xext/sync.c b/Xext/sync.c index 0bcf8057a..5f4ce56bc 100644 --- a/Xext/sync.c +++ b/Xext/sync.c | |||
@@ -1770,6 +1770,7 @@ ProcSyncDestroyAlarm(ClientPtr client) | |||
1770 | 1770 | ||
1771 | rc = dixLookupResourceByType((pointer *)&pAlarm, stuff->alarm, RTAlarm, | 1771 | rc = dixLookupResourceByType((pointer *)&pAlarm, stuff->alarm, RTAlarm, |
1772 | client, DixDestroyAccess); | 1772 | client, DixDestroyAccess); |
1773 | if (rc != Success) | ||
1773 | return (rc == BadValue) ? SyncErrorBase + XSyncBadAlarm : rc; | 1774 | return (rc == BadValue) ? SyncErrorBase + XSyncBadAlarm : rc; |
1774 | 1775 | ||
1775 | FreeResource(stuff->alarm, RT_NONE); | 1776 | FreeResource(stuff->alarm, RT_NONE); |