diff options
Diffstat (limited to 'dix/registry.c')
-rw-r--r-- | dix/registry.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dix/registry.c b/dix/registry.c index 48e1b5dae..01818582e 100644 --- a/dix/registry.c +++ b/dix/registry.c @@ -123,6 +123,8 @@ RegisterResourceName(RESTYPE resource, const char *name) const char * LookupRequestName(int major, int minor) { + if (major < 128) + minor = 0; if (major >= nmajor) return XREGISTRY_UNKNOWN; if (minor >= nminor[major]) |