diff --git a/libfreerdp/gdi/bitmap.c b/libfreerdp/gdi/bitmap.c index f78b64d92..582500597 100644 --- a/libfreerdp/gdi/bitmap.c +++ b/libfreerdp/gdi/bitmap.c @@ -401,7 +401,7 @@ static BOOL adjust_src_dst_coordinates(HGDI_DC hdcDest, INT32* pnXSrc, INT32* pn nWidth = *pnWidth; nHeight = *pnHeight; - if (!hdcDest) + if (!hDstBmp) return FALSE; if (nXDst < 0)