diff options
author | Lubos Lunak <l.lunak@suse.cz> | 2009-03-16 17:57:52 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-03-16 17:57:52 -0700 |
commit | 80811846e37b805fddb37c71589fd5f6f6037b3f (patch) | |
tree | fe1871f6bee9cfd24b95ac1511ed53a0040248b5 | |
parent | da95ecbbdcacc483cd0b5fd7db1fb2e2543341bd (diff) |
XGetErrorText() fails for extension error codes equal to the error base
From http://lists.freedesktop.org/archives/xorg/2008-January/031937.html
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
-rw-r--r-- | src/ErrDes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ErrDes.c b/src/ErrDes.c index d60ca213..0ec0a9d4 100644 --- a/src/ErrDes.c +++ b/src/ErrDes.c @@ -123,7 +123,7 @@ XGetErrorText( if (ext->error_string) (*ext->error_string)(dpy, code, &ext->codes, buffer, nbytes); if (ext->codes.first_error && - ext->codes.first_error < code && + ext->codes.first_error <= code && (!bext || ext->codes.first_error > bext->codes.first_error)) bext = ext; } |