Преглед на файлове

Fix handling of VMware cursors

This is a regression from ad0f061. If a VMware cursor rect was split up
over multiple read()s then the stream would become corrupted as we set
the restore point at the wrong place.
tags/v1.12.90
Pierre Ossman преди 2 години
родител
ревизия
1a729dc012
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2
    2
      common/rfb/CMsgReader.cxx

+ 2
- 2
common/rfb/CMsgReader.cxx Целия файл

@@ -636,11 +636,11 @@ bool CMsgReader::readSetVMwareCursor(int width, int height, const Point& hotspot
if (!is->hasData(1 + 1))
return false;

is->setRestorePoint();

type = is->readU8();
is->skip(1);

is->setRestorePoint();

if (type == 0) {
int len = width * height * (handler->server.pf().bpp/8);
rdr::U8Array andMask(len);

Loading…
Отказ
Запис