From b1d2053ad125117c434f890eef77e366bc5afafd Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Mon, 20 Nov 2017 13:42:40 +0100 Subject: [PATCH] Fix #4101: Rfx decode tile width. --- libfreerdp/codec/rfx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfreerdp/codec/rfx.c b/libfreerdp/codec/rfx.c index ce03a74..39b9782 100644 --- a/libfreerdp/codec/rfx.c +++ b/libfreerdp/codec/rfx.c @@ -1150,7 +1150,7 @@ BOOL rfx_process_message(RFX_CONTEXT* context, const BYTE* data, UINT32 length, REGION16 clippingRects; const RECTANGLE_16* updateRects; const DWORD formatSize = GetBytesPerPixel(context->pixel_format); - const UINT32 dstWidth = dstStride / formatSize; + const UINT32 dstWidth = dstStride / GetBytesPerPixel(dstFormat); region16_init(&clippingRects); for (i = 0; i < message->numRects; i++) -- 2.7.4