Author: dchapyshev
Date: Wed May 20 11:51:22 2009
New Revision: 41014
URL:
http://svn.reactos.org/svn/reactos?rev=41014&view=rev
Log:
- Fix crash in gdi32 bitmap winetest
Modified:
trunk/reactos/dll/win32/gdi32/objects/bitmap.c
Modified: trunk/reactos/dll/win32/gdi32/objects/bitmap.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/bi…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/bitmap.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/gdi32/objects/bitmap.c [iso-8859-1] Wed May 20 11:51:22 2009
@@ -74,7 +74,6 @@
PLONG compr,
PLONG size )
{
-
if (header->biSize == sizeof(BITMAPCOREHEADER))
{
BITMAPCOREHEADER *core = (BITMAPCOREHEADER *)header;
@@ -467,6 +466,8 @@
UINT cjBmpScanSize;
PVOID pvSafeBits = NULL;
HBITMAP hBmp;
+
+ if (!Header) return 0;
pConvertedInfo = ConvertBitmapInfo(Data, ColorUse,
&ConvertedInfoSize, FALSE);