Commit 4e1aba74 authored by Vic Lee's avatar Vic Lee Committed by Johannes Schindelin

Fix bug for VNC Server version 4

Signed-off-by: 's avatarVic Lee <llyzs@163.com>
parent fd084b5d
...@@ -511,8 +511,11 @@ InitialiseRFBConnection(rfbClient* client) ...@@ -511,8 +511,11 @@ InitialiseRFBConnection(rfbClient* client)
} }
/* we do not support > RFB3.8 */ /* we do not support > RFB3.8 */
if (major==3 && minor>8) if ((major==3 && minor>8) || major>3)
{
client->major=3;
client->minor=8; client->minor=8;
}
rfbClientLog("VNC server supports protocol version %d.%d (viewer %d.%d)\n", rfbClientLog("VNC server supports protocol version %d.%d (viewer %d.%d)\n",
major, minor, rfbProtocolMajorVersion, rfbProtocolMinorVersion); major, minor, rfbProtocolMajorVersion, rfbProtocolMinorVersion);
......
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