Line 0
Link Here
|
|
|
1 |
--- icccm/icccm.c.orig 2009-08-24 11:47:36.000000000 +0300 |
2 |
+++ icccm/icccm.c 2009-10-21 21:01:52.000000000 +0300 |
3 |
@@ -627,15 +627,13 @@ |
4 |
xcb_get_wm_hints_from_reply(xcb_wm_hints_t *hints, |
5 |
xcb_get_property_reply_t *reply) |
6 |
{ |
7 |
- if(!reply) |
8 |
+ if(!reply || reply->type != WM_HINTS || reply->format != 32) |
9 |
return 0; |
10 |
|
11 |
int length = xcb_get_property_value_length(reply); |
12 |
int num_elem = length / (reply->format / 8); |
13 |
|
14 |
- if (reply->type != WM_HINTS |
15 |
- || reply->format != 32 |
16 |
- || num_elem < XCB_NUM_WM_HINTS_ELEMENTS - 1) |
17 |
+ if(num_elem < XCB_NUM_WM_HINTS_ELEMENTS - 1) |
18 |
return 0; |
19 |
|
20 |
memcpy(hints, (xcb_size_hints_t *) xcb_get_property_value(reply), length); |