diff --git a/uppsrc/CtrlCore/ImageWin32.cpp b/uppsrc/CtrlCore/ImageWin32.cpp index a21a724c9..613b9c37b 100644 --- a/uppsrc/CtrlCore/ImageWin32.cpp +++ b/uppsrc/CtrlCore/ImageWin32.cpp @@ -291,6 +291,7 @@ void ImageSysData::Paint(SystemDraw& w, int x, int y, const Rect& src, Color c) LTIMING("Image Alpha create"); BitmapInfo32__ bi(sz.cx, sz.cy); himg = CreateDIBSection(ScreenHDC(), bi, DIB_RGB_COLORS, (void **)§ion, NULL, 0); + if(!himg) return; // Return on release. Copy(section, ~img, img.GetLength()); } LTIMING("Image Alpha blit");