Author: greatlrd
Date: Thu Sep 28 23:08:07 2006
New Revision: 24288
URL:
http://svn.reactos.org/svn/reactos?rev=24288&view=rev
Log:
NtGdiCreateDIBitmap
fixed 2 more hiden bugs (cause some crash/bsod) but not the bug I am searching for.
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 Thu Sep 28 23:08:07 2006
@@ -793,7 +793,16 @@
PDC Dc;
HBITMAP Bmp;
-
+ if (Header == NULL)
+ {
+ return NULL;
+ }
+
+ if (Header->biSize == 0)
+ {
+ return NULL;
+ }
+
if (NULL == hDc)
{
BITMAPINFOHEADER *change_Header = (BITMAPINFOHEADER *)Header;