gdi32: Add check for null pointer in SetDIBitsToDevice.

This commit is contained in:
Louis Lenders 2007-05-07 21:03:16 +01:00 committed by Alexandre Julliard
parent 00e37a81b2
commit d711728a7e

View file

@ -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)