From 5b2dc3973dc67a2fc9c59940b8e200451bd2f189 Mon Sep 17 00:00:00 2001 From: cxl Date: Fri, 25 Mar 2016 18:22:51 +0000 Subject: [PATCH] Additional check in ImageWin32.cpp git-svn-id: svn://ultimatepp.org/upp/trunk@9628 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CtrlCore/ImageWin32.cpp | 1 + 1 file changed, 1 insertion(+) 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");