gdi32: Add check for null pointer in SetDIBitsToDevice.
This commit is contained in:
parent
00e37a81b2
commit
d711728a7e
@ -364,6 +364,8 @@ INT WINAPI SetDIBitsToDevice(HDC hdc, INT xDest, INT yDest, DWORD cx,
|
||||
INT ret;
|
||||
DC *dc;
|
||||
|
||||
if (!bits) return 0;
|
||||
|
||||
if (!(dc = DC_GetDCUpdate( hdc ))) return 0;
|
||||
|
||||
if(dc->funcs->pSetDIBitsToDevice)
|
||||
|
Loading…
x
Reference in New Issue
Block a user