StretchDIBits: avoid crash on null pointers.
This commit is contained in:
parent
bcca0cb395
commit
473d6cbd27
|
@ -155,7 +155,12 @@ INT WINAPI StretchDIBits(HDC hdc, INT xDst, INT yDst, INT widthDst,
|
|||
INT heightSrc, const void *bits,
|
||||
const BITMAPINFO *info, UINT wUsage, DWORD dwRop )
|
||||
{
|
||||
DC *dc = DC_GetDCUpdate( hdc );
|
||||
DC *dc;
|
||||
|
||||
if (!bits || !info)
|
||||
return 0;
|
||||
|
||||
dc = DC_GetDCUpdate( hdc );
|
||||
if(!dc) return FALSE;
|
||||
|
||||
if(dc->funcs->pStretchDIBits)
|
||||
|
|
Loading…
Reference in New Issue