aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/HextileDecoder.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/rfb/HextileDecoder.cxx')
-rw-r--r--common/rfb/HextileDecoder.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/HextileDecoder.cxx b/common/rfb/HextileDecoder.cxx
index d440b1af..35ec7928 100644
--- a/common/rfb/HextileDecoder.cxx
+++ b/common/rfb/HextileDecoder.cxx
@@ -189,7 +189,7 @@ void HextileDecoder::hextileDecode(const Rect& r, rdr::InStream* is,
int w = ((wh >> 4) & 15) + 1;
int h = (wh & 15) + 1;
if (x + w > 16 || y + h > 16) {
- throw ProtocolException("HEXTILE_DECODE: Hextile out of bounds");
+ throw protocol_error("HEXTILE_DECODE: Hextile out of bounds");
}
ptr = buf + y * t.width() + x;
int rowAdd = t.width() - w;