Commit d1a3eb9d authored by dscho's avatar dscho

Merge pull request #7 from waldheinz/init-sfae-padding

Initialize padding in SetFormatAndEncodings' rfbSetPixelFormatMsg.
parents da7cf4fe b6b88893
...@@ -1288,6 +1288,8 @@ SetFormatAndEncodings(rfbClient* client) ...@@ -1288,6 +1288,8 @@ SetFormatAndEncodings(rfbClient* client)
if (!SupportsClient2Server(client, rfbSetPixelFormat)) return TRUE; if (!SupportsClient2Server(client, rfbSetPixelFormat)) return TRUE;
spf.type = rfbSetPixelFormat; spf.type = rfbSetPixelFormat;
spf.pad1 = 0;
spf.pad2 = 0;
spf.format = client->format; spf.format = client->format;
spf.format.redMax = rfbClientSwap16IfLE(spf.format.redMax); spf.format.redMax = rfbClientSwap16IfLE(spf.format.redMax);
spf.format.greenMax = rfbClientSwap16IfLE(spf.format.greenMax); spf.format.greenMax = rfbClientSwap16IfLE(spf.format.greenMax);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment