- Fix crash in gdi32 bitmap winetest

svn path=/trunk/; revision=41014
This commit is contained in:
Dmitry Chapyshev 2009-05-20 07:51:22 +00:00
parent ccf3aa7ce8
commit 822db26efe

View file

@ -74,7 +74,6 @@ DIB_GetBitmapInfo(const BITMAPINFOHEADER *header,
PLONG compr,
PLONG size )
{
if (header->biSize == sizeof(BITMAPCOREHEADER))
{
BITMAPCOREHEADER *core = (BITMAPCOREHEADER *)header;
@ -468,6 +467,8 @@ CreateDIBitmap( HDC hDC,
PVOID pvSafeBits = NULL;
HBITMAP hBmp;
if (!Header) return 0;
pConvertedInfo = ConvertBitmapInfo(Data, ColorUse,
&ConvertedInfoSize, FALSE);