mirror of
https://github.com/reactos/reactos.git
synced 2025-07-05 17:11:28 +00:00
fix a hidden bug in IntCreateBitmapIndirect
svn path=/trunk/; revision=24287
This commit is contained in:
parent
eeef3f67ba
commit
9e939c11e9
1 changed files with 6 additions and 1 deletions
|
@ -437,7 +437,12 @@ IntCreateBitmapIndirect(CONST BITMAP *BM)
|
||||||
Size.cx, Size.cy, BitsPixel, hBitmap);
|
Size.cx, Size.cy, BitsPixel, hBitmap);
|
||||||
|
|
||||||
bmp = BITMAPOBJ_LockBitmap( 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;
|
bmp->flFlags = BITMAPOBJ_IS_APIBITMAP;
|
||||||
BITMAPOBJ_UnlockBitmap( bmp );
|
BITMAPOBJ_UnlockBitmap( bmp );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue