From ac3fb4c676201bb196e0b51408c2963144218c7a Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 29 Aug 2013 10:52:35 +0200 Subject: [PATCH] Fixed coverity issue 1047649 --- libfreerdp/gdi/32bpp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libfreerdp/gdi/32bpp.c b/libfreerdp/gdi/32bpp.c index 3b3c05e..d3d91c0 100644 --- a/libfreerdp/gdi/32bpp.c +++ b/libfreerdp/gdi/32bpp.c @@ -850,6 +850,9 @@ static int BitBlt_PATPAINT_32bpp(HGDI_DC hdcDest, int nXDest, int nYDest, int nW int BitBlt_32bpp(HGDI_DC hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, HGDI_DC hdcSrc, int nXSrc, int nYSrc, int rop) { + if (!hdcDest) + return 0; + if (hdcSrc != NULL) { if (gdi_ClipCoords(hdcDest, &nXDest, &nYDest, &nWidth, &nHeight, &nXSrc, &nYSrc) == 0) -- 2.7.4