mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 09:15:11 +00:00
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…
Reference in a new issue