From 536ffbc31fb68aa0f8add8dedd364e9752058d90 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Tue, 14 Nov 2017 13:59:15 +0100 Subject: [PATCH] Fixed missing function return check. --- libfreerdp/codec/interleaved.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libfreerdp/codec/interleaved.c b/libfreerdp/codec/interleaved.c index 3be3b9e70..943ca007b 100644 --- a/libfreerdp/codec/interleaved.c +++ b/libfreerdp/codec/interleaved.c @@ -384,9 +384,11 @@ BOOL interleaved_compress(BITMAP_INTERLEAVED_CONTEXT* interleaved, if (!DstFormat) return FALSE; - status = freerdp_image_copy(interleaved->TempBuffer, DstFormat, 0, 0, 0, nWidth, - nHeight, - pSrcData, SrcFormat, nSrcStep, nXSrc, nYSrc, palette, FREERDP_FLIP_NONE); + if (!freerdp_image_copy(interleaved->TempBuffer, DstFormat, 0, 0, 0, nWidth, + nHeight, + pSrcData, SrcFormat, nSrcStep, nXSrc, nYSrc, palette, FREERDP_FLIP_NONE)) + return FALSE; + s = Stream_New(pDstData, maxSize); if (!s)