Peter Harris
97a8353ec1
Fix id in error when resource does not exist
Always set client->errorValue before returning an error.
Test program:
int main(int argc, char *argv[]) {
int screen = 0;
xcb_connection_t *c = xcb_connect(NULL, &screen);
if (!c) {
printf("Cannot connect\n");
return 1;
}
xcb_void_cookie_t tok = xcb_free_gc_checked(c, BAD_VALUE);
xcb_g_context_error_t *err = (xcb_g_context_error_t *)xcb_request_check(c, tok);
if (!err) {
printf("Unexpected request success\n");
return 1;
}
if (err->bad_value != BAD_VALUE) {
printf("Error: Got 0x%X, expected 0x%X\n", err->bad_value, BAD_VALUE);
return 1;
}
printf("Success! Got expected bad value of 0x%X\n", BAD_VALUE);
return 0;
}
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Peter Harris <pharris@opentext.com>
2016-10-06 14:50:42 -04:00
..
2011-09-23 17:14:47 -07:00
2015-07-08 16:41:29 -04:00
2015-08-24 00:00:18 -07:00
2016-07-15 09:53:07 -04:00
2016-09-21 21:11:40 +10:00
2016-09-28 15:25:07 -04:00
2014-11-12 10:25:00 +10:00
2016-07-18 15:27:51 -04:00
2016-07-18 15:27:51 -04:00
2016-06-01 10:31:52 -07:00
2015-07-08 16:40:57 -04:00
2013-05-07 09:40:42 +10:00
2016-09-19 08:55:02 -07:00
2015-04-21 16:57:08 -07:00
2012-03-21 13:54:42 -07:00
2014-11-12 10:25:00 +10:00
2015-11-24 11:36:34 +10:00
2016-05-30 00:17:15 -07:00
2015-04-21 16:57:07 -07:00
2015-04-21 16:57:08 -07:00
2012-03-21 13:54:42 -07:00
2016-10-05 13:46:29 -04:00
2016-09-22 14:55:02 -07:00
2013-07-23 23:56:58 +01:00
2016-06-08 12:51:51 -04:00
2016-09-13 10:26:40 +02:00
2016-08-15 08:54:45 -07:00
2015-09-25 09:46:11 -04:00
2016-05-26 16:07:54 -07:00
2015-04-21 16:57:08 -07:00
2014-09-18 15:29:29 -07:00
2016-10-06 14:50:42 -04:00
2016-05-04 10:58:01 -04:00
2013-07-23 23:56:58 +01:00
2014-11-12 10:25:00 +10:00
2014-11-12 10:25:00 +10:00
2014-11-12 10:25:00 +10:00
2016-05-26 16:07:54 -07:00
2016-02-22 13:26:31 -05:00
2012-03-22 11:33:42 +10:00
2015-02-10 18:14:44 -08:00