Re: xcb_get_property_reply returning trash
Steven J Abner <[email protected]> Fri, 20 Sep 2024 07:14:40 -0400
| Newsgroups | gmane.comp.freedesktop.xcb |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Sep 20 2024 at 05:02:17 AM +0000, Uli Schlachter <[email protected]> wrote: > So how exactly are you checking the reply that you get? Do you look > at the length of the reply (reply->value_len or > xcb_get_property_value_length(reply))? Do you check e.g. reply->type > or reply->format? You're bloody brilliant! A step I didn't think about because I thought too simple. A format=0, length=0, type=0, value_length=0, pick one, any card, I lose. One last brain pick, related since on errors, mine!. Even though I normally check for reply == NULL, I occasionally use the error return. I can't find examples, but the question: does an error response (!= NULL) belong to me such that I need to free it? May great things come your way, thank you, thank you. Steve