mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
randr: fix size parameter to WriteToClient()
Size computation needs to be done on the struct actually written. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -654,7 +654,7 @@ ProcRRGetProviderProperty(ClientPtr client)
|
|||||||
if (rpcbuf.error)
|
if (rpcbuf.error)
|
||||||
return BadAlloc;
|
return BadAlloc;
|
||||||
|
|
||||||
WriteToClient(client, sizeof(xGenericReply), &reply);
|
WriteToClient(client, sizeof(reply), &reply);
|
||||||
WriteRpcbufToClient(client, &rpcbuf);
|
WriteRpcbufToClient(client, &rpcbuf);
|
||||||
|
|
||||||
if (stuff->delete && (reply.bytesAfter == 0)) { /* delete the Property */
|
if (stuff->delete && (reply.bytesAfter == 0)) { /* delete the Property */
|
||||||
|
|||||||
Reference in New Issue
Block a user