mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 13:28:08 +02:00
registry: special case minor number when looking up core requests.
This commit is contained in:
parent
e3fd90ae9c
commit
31110d6837
1 changed files with 2 additions and 0 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue