Commit d711728a authored by Louis Lenders's avatar Louis Lenders Committed by Alexandre Julliard

gdi32: Add check for null pointer in SetDIBitsToDevice.

parent 00e37a81
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment