[xutil] Fix missing applied mask when getting request code in xutil_get_error().

Thanks to Matthieu Pasini.
This commit is contained in:
Arnaud Fontaine 2008-04-10 16:18:18 +01:00 committed by Julien Danjou
parent 5d3c7ef4e8
commit 21141c0508
1 changed files with 3 additions and 1 deletions

View File

@ -394,7 +394,9 @@ xutil_get_error(const xcb_generic_error_t *e)
* out how it works BTW, seems to get a byte in 'pad' member
* (second byte in second element of the array)
*/
err->request_code = (e->response_type == 0 ? *((uint8_t *) e + 10) : e->response_type);
err->request_code = (e->response_type == 0 ?
*((uint8_t *) e + 10) : (e->response_type & 0x7f));
err->request_label = a_strdup(xutil_request_label[err->request_code]);
err->error_label = a_strdup(xutil_error_label[e->error_code]);