diff options
-rw-r--r-- | x11/accessx/files/patch-Access.C | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/x11/accessx/files/patch-Access.C b/x11/accessx/files/patch-Access.C index 05b288fdea2a..dc50b39dd53d 100644 --- a/x11/accessx/files/patch-Access.C +++ b/x11/accessx/files/patch-Access.C @@ -1,5 +1,5 @@ ---- Access.C.orig Mon Dec 16 20:35:51 2002 -+++ Access.C Mon Dec 16 20:36:29 2002 +--- Access.C.orig Tue Mar 13 23:39:55 2001 ++++ Access.C Tue Jan 30 22:18:00 2007 @@ -21,6 +21,8 @@ #include <X11/XKBlib.h> #include "Access.h" @@ -9,3 +9,21 @@ // // Access() // +@@ -152,7 +154,7 @@ + //Get the state of the keyboard. + + XkbDescPtr xkb = XkbGetMap(display, 0, XkbUseCoreKbd); +- if ((int)xkb == BadAlloc || xkb == NULL) ++ if (xkb == NULL) + { + return 5; /*AccessKeyboardQueryFailure;*/ + } +@@ -261,7 +263,7 @@ + //Get the state of the keyboard. + + XkbDescPtr xkb = XkbGetMap(display, 0, XkbUseCoreKbd); +- if ((int)xkb == BadAlloc || xkb == NULL) ++ if (xkb == NULL) + { + return 5; /*AccessKeyboardQueryFailure;*/ + } |