Louis Lenders : gdi32: Add check for null pointer in SetDIBitsToDevice.

svn path=/trunk/; revision=31088
This commit is contained in:
James Tabor 2007-12-08 18:32:22 +00:00
parent 4eeedf2f9e
commit 5b49088f56

View file

@ -343,6 +343,8 @@ NtGdiSetDIBitsToDeviceInternal(
SIZEL SourceSize;
XLATEOBJ *XlateObj = NULL;
if (!Bits) return 0;
pDC = DC_LockDc(hDC);
if (!pDC)
{