projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sync with trunk r63502.
[reactos.git]
/
win32ss
/
gdi
/
ntgdi
/
bitblt.c
diff --git
a/win32ss/gdi/ntgdi/bitblt.c
b/win32ss/gdi/ntgdi/bitblt.c
index
a567290
..
e27c5e2
100644
(file)
--- a/
win32ss/gdi/ntgdi/bitblt.c
+++ b/
win32ss/gdi/ntgdi/bitblt.c
@@
-47,6
+47,12
@@
NtGdiAlphaBlend(
return FALSE;
}
return FALSE;
}
+ if ((hDCDest == NULL) || (hDCSrc == NULL))
+ {
+ EngSetLastError(ERROR_INVALID_PARAMETER);
+ return FALSE;
+ }
+
TRACE("Locking DCs\n");
ahDC[0] = hDCDest;
ahDC[1] = hDCSrc ;
TRACE("Locking DCs\n");
ahDC[0] = hDCDest;
ahDC[1] = hDCSrc ;
@@
-161,14
+167,14
@@
NtGdiBitBlt(
return NtGdiStretchBlt(hDCDest,
XDest,
YDest,
return NtGdiStretchBlt(hDCDest,
XDest,
YDest,
- Width,
+ Width,
Height,
hDCSrc,
XSrc,
YSrc,
Width,
Height,
Height,
hDCSrc,
XSrc,
YSrc,
Width,
Height,
- ROP,
+ ROP,
crBackColor);
dwTRop = ROP & ~(NOMIRRORBITMAP|CAPTUREBLT);
crBackColor);
dwTRop = ROP & ~(NOMIRRORBITMAP|CAPTUREBLT);
@@
-213,6
+219,12
@@
NtGdiTransparentBlt(
BOOL Ret = FALSE;
EXLATEOBJ exlo;
BOOL Ret = FALSE;
EXLATEOBJ exlo;
+ if ((hdcDst == NULL) || (hdcSrc == NULL))
+ {
+ EngSetLastError(ERROR_INVALID_PARAMETER);
+ return FALSE;
+ }
+
TRACE("Locking DCs\n");
ahDC[0] = hdcDst;
ahDC[1] = hdcSrc ;
TRACE("Locking DCs\n");
ahDC[0] = hdcDst;
ahDC[1] = hdcSrc ;