fix a hidden bug in IntCreateBitmapIndirect

svn path=/trunk/; revision=24287
This commit is contained in:
Magnus Olsen 2006-09-28 18:32:09 +00:00
parent eeef3f67ba
commit 9e939c11e9

View file

@ -437,7 +437,12 @@ IntCreateBitmapIndirect(CONST BITMAP *BM)
Size.cx, Size.cy, BitsPixel, hBitmap);
bmp = BITMAPOBJ_LockBitmap( hBitmap );
/* FIXME - bmp can be NULL!!!!!! */
if (bmp == NULL)
{
/* FIXME should we free the hBitmap or return it ?? */
return 0;
}
bmp->flFlags = BITMAPOBJ_IS_APIBITMAP;
BITMAPOBJ_UnlockBitmap( bmp );