projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d3e8c7
)
Fixed coverity issue 1047649
author
Armin Novak
<anovak@thinstuff.com>
Thu, 29 Aug 2013 08:52:35 +0000
(10:52 +0200)
committer
Armin Novak
<anovak@thinstuff.com>
Thu, 5 Sep 2013 10:14:33 +0000
(12:14 +0200)
libfreerdp/gdi/32bpp.c
patch
|
blob
|
history
diff --git
a/libfreerdp/gdi/32bpp.c
b/libfreerdp/gdi/32bpp.c
index
3b3c05e
..
d3d91c0
100644
(file)
--- 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)