From b5438423ad29338429321cd29118a66b715cdcac Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sun, 25 Sep 2011 14:06:47 -0400 Subject: Fix wrong-sized swaps Signed-off-by: Matt Turner --- src/vmwarexinerama.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/vmwarexinerama.c b/src/vmwarexinerama.c index 3476f43..371c7b1 100644 --- a/src/vmwarexinerama.c +++ b/src/vmwarexinerama.c @@ -134,7 +134,6 @@ VMwareXineramaGetState(ClientPtr client) if(client->swapped) { swaps (&rep.sequenceNumber, n); swapl (&rep.length, n); - swaps (&rep.state, n); } WriteToClient(client, sizeof(xPanoramiXGetStateReply), (char *)&rep); return client->noClientException; @@ -186,7 +185,6 @@ VMwareXineramaGetScreenCount(ClientPtr client) if(client->swapped) { swaps(&rep.sequenceNumber, n); swapl(&rep.length, n); - swaps(&rep.ScreenCount, n); } WriteToClient(client, sizeof(xPanoramiXGetScreenCountReply), (char *)&rep); return client->noClientException; @@ -239,8 +237,8 @@ VMwareXineramaGetScreenSize(ClientPtr client) if(client->swapped) { swaps(&rep.sequenceNumber, n); swapl(&rep.length, n); - swaps(&rep.width, n); - swaps(&rep.height, n); + swapl(&rep.width, n); + swapl(&rep.height, n); } WriteToClient(client, sizeof(xPanoramiXGetScreenSizeReply), (char *)&rep); return client->noClientException; -- cgit v1.2.3