mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
Louis Lenders : gdi32: Add check for null pointer in SetDIBitsToDevice.
svn path=/trunk/; revision=31088
This commit is contained in:
parent
4eeedf2f9e
commit
5b49088f56
1 changed files with 2 additions and 0 deletions
|
@ -343,6 +343,8 @@ NtGdiSetDIBitsToDeviceInternal(
|
|||
SIZEL SourceSize;
|
||||
XLATEOBJ *XlateObj = NULL;
|
||||
|
||||
if (!Bits) return 0;
|
||||
|
||||
pDC = DC_LockDc(hDC);
|
||||
if (!pDC)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue