Commit in reactos/subsys/win32k/eng on MAIN
surface.c+4-11.46 -> 1.47
BUGFIX: EngCreateBitmap() - don't call GDIOBJ_SetOwnerShip() with invalid handle

reactos/subsys/win32k/eng
surface.c 1.46 -> 1.47
diff -u -r1.46 -r1.47
--- surface.c	14 Dec 2004 04:55:43 -0000	1.46
+++ surface.c	18 Dec 2004 17:12:32 -0000	1.47
@@ -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 @@
   HBITMAP NewBitmap;
   
   NewBitmap = IntCreateBitmap(Size, Width, Format, Flags, Bits);
+  if ( !NewBitmap )
+	  return 0;
+
   GDIOBJ_SetOwnership(NewBitmap, NULL);
 
   return NewBitmap;
CVSspam 0.2.8