Fix bug for VNC Server version 4

Signed-off-by: Vic Lee <llyzs@163.com>
pull/1/head
Vic Lee 15 years ago committed by Johannes Schindelin
parent fd084b5d28
commit 4e1aba74e6

@ -511,8 +511,11 @@ InitialiseRFBConnection(rfbClient* client)
}
/* we do not support > RFB3.8 */
if (major==3 && minor>8)
if ((major==3 && minor>8) || major>3)
{
client->major=3;
client->minor=8;
}
rfbClientLog("VNC server supports protocol version %d.%d (viewer %d.%d)\n",
major, minor, rfbProtocolMajorVersion, rfbProtocolMinorVersion);

Loading…
Cancel
Save