From 9f554fcdf741db25b511e8366dbd582d3e15f0cc Mon Sep 17 00:00:00 2001 From: Vagn Johansen Date: Tue, 16 Apr 2013 19:17:50 +0200 Subject: [PATCH] Set FBU.bytes to 1 in encHandlers.COPYRECT FBU.bytes must be set before return false to indicate that the FBU header has been read. If not set then "if (FBU.bytes == 0) { ..}" in framebufferUpdate will be entered and the copyrect header will be interpreted as a new FBU leading to a "unsupported encoding" disconnect error. --- include/rfb.js | 1 + 1 file changed, 1 insertion(+) diff --git a/include/rfb.js b/include/rfb.js index b7be99f8..35bb3a13 100644 --- a/include/rfb.js +++ b/include/rfb.js @@ -1126,6 +1126,7 @@ encHandlers.COPYRECT = function display_copy_rect() { var old_x, old_y; + FBU.bytes = 1; if (ws.rQwait("COPYRECT", 4)) { return false; } display.renderQ_push({ 'type': 'copy',