From 75d471db4bcae832935bd01e61d84c18b9c8e98d Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sat, 25 Oct 2014 21:16:17 +0000 Subject: [PATCH] [WIN32k] Stop ASSERTing, that we always have all the resources we need in IntCreateCompatibleBitmap svn path=/trunk/; revision=64997 --- reactos/win32ss/gdi/ntgdi/bitmaps.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/reactos/win32ss/gdi/ntgdi/bitmaps.c b/reactos/win32ss/gdi/ntgdi/bitmaps.c index e72dec295e7..2ded5a86e34 100644 --- a/reactos/win32ss/gdi/ntgdi/bitmaps.c +++ b/reactos/win32ss/gdi/ntgdi/bitmaps.c @@ -239,6 +239,12 @@ IntCreateCompatibleBitmap( Planes ? Planes : 1, Bpp ? Bpp : Dc->ppdev->gdiinfo.cBitsPixel, NULL); + if (Bmp == NULL) + { + DPRINT1("Failed to allocate a bitmap!\n"); + return NULL; + } + psurf = SURFACE_ShareLockSurface(Bmp); ASSERT(psurf);