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
if (!is->hasData(1 + 1)) | if (!is->hasData(1 + 1)) | ||||
return false; | return false; | ||||
is->setRestorePoint(); | |||||
type = is->readU8(); | type = is->readU8(); | ||||
is->skip(1); | is->skip(1); | ||||
is->setRestorePoint(); | |||||
if (type == 0) { | if (type == 0) { | ||||
int len = width * height * (handler->server.pf().bpp/8); | int len = width * height * (handler->server.pf().bpp/8); | ||||
rdr::U8Array andMask(len); | rdr::U8Array andMask(len); |