Commit b6b88893 authored by Matthias Treydte's avatar Matthias Treydte

Initialize padding in SetFormatAndEncodings' rfbSetPixelFormatMsg.

parent 8c21b31c
...@@ -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