XQuartz: appledri: Set the correct reply length for XAppleDRICreatePixmap
http://xquartz.macosforge.org/trac/ticket/508 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Jamey Sharp <jamey@minilop.net>
This commit is contained in:
parent
e4f257748b
commit
2ba0ac202a
|
@ -279,7 +279,7 @@ ProcAppleDRICreatePixmap(ClientPtr client)
|
|||
|
||||
/* No need for swapping, because this only runs if LocalClient is true. */
|
||||
rep.type = X_Reply;
|
||||
rep.length = sizeof(rep) + rep.stringLength;
|
||||
rep.length = bytes_to_int32(rep.stringLength);
|
||||
rep.sequenceNumber = client->sequence;
|
||||
rep.width = width;
|
||||
rep.height = height;
|
||||
|
|
Loading…
Reference in New Issue
Block a user