Fixed coverity issue 1047649
authorArmin Novak <anovak@thinstuff.com>
Thu, 29 Aug 2013 08:52:35 +0000 (10:52 +0200)
committerArmin Novak <anovak@thinstuff.com>
Thu, 5 Sep 2013 10:14:33 +0000 (12:14 +0200)
libfreerdp/gdi/32bpp.c

index 3b3c05e..d3d91c0 100644 (file)
@@ -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)