projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BUGFIX: EngCreateBitmap() - don't call GDIOBJ_SetOwnerShip() with invalid handle
[reactos.git]
/
reactos
/
subsys
/
win32k
/
eng
/
surface.c
diff --git
a/reactos/subsys/win32k/eng/surface.c
b/reactos/subsys/win32k/eng/surface.c
index
b6982cb
..
952aa01
100644
(file)
--- a/
reactos/subsys/win32k/eng/surface.c
+++ b/
reactos/subsys/win32k/eng/surface.c
@@
-16,7
+16,7
@@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
* 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.4
6 2004/12/14 04:55:43
royce Exp $
+/* $Id: surface.c,v 1.4
7 2004/12/18 17:12:32
royce Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
*
* 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);
HBITMAP NewBitmap;
NewBitmap = IntCreateBitmap(Size, Width, Format, Flags, Bits);
+ if ( !NewBitmap )
+ return 0;
+
GDIOBJ_SetOwnership(NewBitmap, NULL);
return NewBitmap;
GDIOBJ_SetOwnership(NewBitmap, NULL);
return NewBitmap;