mirror of
https://gitlab.freedesktop.org/xorg/proto/xcbproto.git
synced 2026-05-07 17:48:03 +02:00
Correct the length calculation for the value field of GetPropertyReply.
value_len only contains the number of data units, which are 1, 2, or 4 bytes depending on the value of the format field. The length of the value field is thus value_len multiplied by the bytes per unit, which is format / 8. Signed-off-by: Eamon Walsh <ewalsh@tycho.nsa.gov>
This commit is contained in:
parent
4d9e8c51ea
commit
fe7b12db4f
1 changed files with 7 additions and 1 deletions
|
|
@ -987,7 +987,13 @@ authorization from the authors.
|
|||
<field type="CARD32" name="value_len" />
|
||||
<pad bytes="12" />
|
||||
<list type="void" name="value">
|
||||
<fieldref>value_len</fieldref>
|
||||
<op op="*">
|
||||
<fieldref>value_len</fieldref>
|
||||
<op op="/">
|
||||
<fieldref>format</fieldref>
|
||||
<value>8</value>
|
||||
</op>
|
||||
</op>
|
||||
</list>
|
||||
</reply>
|
||||
</request>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue