mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 18:35:32 +00:00
fix a hidden bug in IntCreateBitmapIndirect
svn path=/trunk/; revision=24287
This commit is contained in:
parent
eeef3f67ba
commit
9e939c11e9
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue