mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
BUGFIX: EngCreateBitmap() - don't call GDIOBJ_SetOwnerShip() with invalid handle
svn path=/trunk/; revision=12183
This commit is contained in:
parent
eec9a15bd8
commit
9b125b75bd
1 changed files with 4 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: surface.c,v 1.46 2004/12/14 04:55:43 royce Exp $
|
||||
/* $Id: surface.c,v 1.47 2004/12/18 17:12:32 royce Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -332,6 +332,9 @@ EngCreateBitmap(IN SIZEL Size,
|
|||
HBITMAP NewBitmap;
|
||||
|
||||
NewBitmap = IntCreateBitmap(Size, Width, Format, Flags, Bits);
|
||||
if ( !NewBitmap )
|
||||
return 0;
|
||||
|
||||
GDIOBJ_SetOwnership(NewBitmap, NULL);
|
||||
|
||||
return NewBitmap;
|
||||
|
|
Loading…
Reference in a new issue