summaryrefslogtreecommitdiff
path: root/dix/registry.c
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2007-10-25 19:02:03 -0400
committerEamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil>2007-10-25 19:09:26 -0400
commit5f9095f0d29bac0190d82c87a09cf32d6a34c17c (patch)
tree37f35b9b0ffbf1c92a1ecf09164dacaff41c279e /dix/registry.c
parent8c6923018c7d71cd15d9cf4ef9e8528ef5ec7c2e (diff)
registry: Remove synthetic bit from event types in lookup function.
Diffstat (limited to 'dix/registry.c')
-rw-r--r--dix/registry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dix/registry.c b/dix/registry.c
index 48e1b5dae..1cf7fa59e 100644
--- a/dix/registry.c
+++ b/dix/registry.c
@@ -134,6 +134,7 @@ LookupRequestName(int major, int minor)
const char *
LookupEventName(int event)
{
+ event &= 127;
if (event >= nevent)
return XREGISTRY_UNKNOWN;
@@ -153,7 +154,6 @@ const char *
LookupResourceName(RESTYPE resource)
{
resource &= TypeMask;
-
if (resource >= nresource)
return XREGISTRY_UNKNOWN;