Author: jimtabor
Date: Sat Dec 8 21:32:22 2007
New Revision: 31088
URL:
http://svn.reactos.org/svn/reactos?rev=31088&view=rev
Log:
Louis Lenders : gdi32: Add check for null pointer in SetDIBitsToDevice.
Modified:
trunk/reactos/subsystems/win32/win32k/objects/dibobj.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/dibobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dibobj.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dibobj.c Sat Dec 8 21:32:22 2007
@@ -342,6 +342,8 @@
INT DIBWidth;
SIZEL SourceSize;
XLATEOBJ *XlateObj = NULL;
+
+ if (!Bits) return 0;
pDC = DC_LockDc(hDC);
if (!pDC)