Xext: switch to byte counting functions
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -75,7 +75,7 @@ ProcXResQueryClients (ClientPtr client)
|
||||
rep.type = X_Reply;
|
||||
rep.sequenceNumber = client->sequence;
|
||||
rep.num_clients = num_clients;
|
||||
rep.length = rep.num_clients * sz_xXResClient >> 2;
|
||||
rep.length = bytes_to_int32(rep.num_clients * sz_xXResClient);
|
||||
if (client->swapped) {
|
||||
int n;
|
||||
swaps (&rep.sequenceNumber, n);
|
||||
@@ -144,7 +144,7 @@ ProcXResQueryClientResources (ClientPtr client)
|
||||
rep.type = X_Reply;
|
||||
rep.sequenceNumber = client->sequence;
|
||||
rep.num_types = num_types;
|
||||
rep.length = rep.num_types * sz_xXResType >> 2;
|
||||
rep.length = bytes_to_int32(rep.num_types * sz_xXResType);
|
||||
if (client->swapped) {
|
||||
int n;
|
||||
swaps (&rep.sequenceNumber, n);
|
||||
|
||||
Reference in New Issue
Block a user