Stop ASSERTing, that we always have all the resources we need in IntCreateCompatibleBitmap

svn path=/trunk/; revision=64997
This commit is contained in:
Timo Kreuzer 2014-10-25 21:16:17 +00:00
parent 518b6188ec
commit 75d471db4b

View file

@ -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);